Whilst I agree that it isn't *defined* in path, it is certainly part of path's namespace:

```
>>> import matplotlib.path
>>> print matplotlib.path.cleanup_path.__doc__
cleanup_path(path, trans, remove_nans, clip, snap, simplify, curves, sketch_params)
```