code: def _is_in_env(modules, module_aliases):
      """Return whether all modules in list of str modules are installed in env."""
      modules = _coerce_list_of_str(modules)
      try:
          _check_soft_dependencies(
              modules, package_import_alias=module_aliases
          )
          return True
      except ModuleNotFoundError:
          return False
  
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 10 for calling a global function with example usage: _is_in_env(modules, module_aliases) and returns: True, False