[ENH] _safe_import should catch all exceptions, not just ImportError & AttributeError
Is your feature request related to a problem? Please describe.
The _safe_import function in skbase.utils.dependencies._import currently only catches ImportError and AttributeError during import attempts. This should be updated to catch all exception types (with a warning for unexpected ones), matching the more defensive behaviour implemented in sktime.
Describe the solution you'd like
sktime (and potentially other downstream packages) rely on _safe_import to gracefully handle broken or incompatible soft dependencies at module-level imports. In practice, a new version of a soft dependency can introduce breaking changes that raise exceptions other than ImportError or AttributeError during import such as RuntimeError, TypeError, SyntaxError, or errors from cascading imports.
Since the probability of such breakage scales with the number of soft dependencies, the safer approach (currently locally implemented in sktime) is to catch all exceptions, warn the user about unexpected ones, and fall back to a mock object rather than (current implementation in skbase) letting the error propagate and crash the import chain.
Additional context
Originally mentioned here in this comment