As you don't use the original ```path_segments``` you could do:
```python
_path_segments_doc = path_segments.__doc__
```
As you were keeping a reference to the entire function I was expecting you to use it.