Find & avoid references to undocumented API
After reviewing #8279 I noticed that we have objects such as https://github.com/scikit-image/scikit-image/blob/cbab80efc199faf8658270ea6750c0fb41dd6dc3/src/_skimage2/util/_map_array.py#L76
that get referenced in docstrings and documentation by name only – the documentation of the class itself is missing in our documentation. In the case of ArrayMap it is referenced as a returned type, see example here: https://github.com/scikit-image/scikit-image/blob/cbab80efc199faf8658270ea6750c0fb41dd6dc3/src/_skimage2/segmentation/_join.py#L24
I'm not sure how users are supposed to learn how to use this object besides relying on sparse examples.
I'm trying to think about this as a categorical problem. How can we address/find all similar occurrences and perhaps avoid this error class entirely in the future?
sphinx --warn-undefined-variables could be a help in this but doesn't catch this case because it's not formatted as a sphinx reference...
Source: scikit-image/scikit-image