code: def _get_soft_deps(est):
      """Return soft dependencies of an estimator, as list of str and its alias."""
      softdeps = est.get_class_tag("python_dependencies", None)
      softdeps_aliases = est.get_class_tag(
          "python_dependencies_aliases", None
      )
      softdeps = _coerce_list_of_str(softdeps)
      if softdeps is None:
          raise RuntimeError(
              'error, "python_dependencies" tag must be None, str or list of str,'
              f" but {est.__name__} has {softdeps}"
          )
      else:
          return softdeps, softdeps_aliases
  
imports: import pkgutil
  import re
  from importlib import import_module
  import pytest
  from sktime.registry import all_estimators
  from sktime.tests._config import EXCLUDE_ESTIMATORS
  from sktime.utils._testing.scenarios_getter import retrieve_scenarios
  from sktime.utils.validation._dependencies import _check_python_version, _check_soft_dependencies
label_desc: Use image node_id 9 for calling a global function with example usage: _get_soft_deps(est) and returns: softdeps,  softdeps_aliases