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`