code: def test_est_fit_without_modulenotfound(estimator):
      """Test that estimators that do not require soft dependencies fit properly."""
      # skip composite estimators that have no soft dependencies
      #   but which have soft dependencies in example components
      if estimator.__name__ in EXCEPTED_FROM_NO_DEP_CHECK:
          return None
  
      try:
          scenarios = retrieve_scenarios(estimator)
          if len(scenarios) == 0:
              return None
          else:
              scenario = scenarios[0]
          estimator_instance = estimator.create_test_instance()
          scenario.run(estimator_instance, method_sequence=["fit"])
      except ModuleNotFoundError as e:
          error_msg = str(e)
          raise RuntimeError(
              f"Estimator {estimator.__name__} does not require soft dependencies "
              f"according to tags, but raises ModuleNotFoundError "
              f"on fit. Any required soft dependencies should be added "
              f'to the "python_dependencies" tag, and python version bounds should be'
              f' added to the "python_version" tag. Exception text: {error_msg}'
          ) from e
  
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 17 for calling a global function with example usage: test_est_fit_without_modulenotfound(estimator) and returns: None, None