Change `try_import` for a case where module exists but an `ImportError` is raised due to incorrect imports from it. E.g., `matplotlib>=3.9.0` doesn't have `matplotlib.cm.register_cmap`
Change
try_importfor a case where module exists but anImportErroris raised due to incorrect imports from it.E.g.,
matplotlib>=3.9.0doesn't havematplotlib.cm.register_cmap