code: def _get_all_mtypes_for_scitype(scitype):
      """Return list of all mtypes for scitype.
  
      Parameters
      ----------
      scitype : str - scitype
  
      Returns
      -------
      mtypes : list of str - list of mtypes for scitype
      """
      if scitype not in [s[0] for s in SCITYPE_REGISTER]:
          raise RuntimeError(
              scitype + " is not in the SCITYPE_REGISTER"
          )
      mtypes = [key[0] for key in MTYPE_REGISTER if key[1] == scitype]
      mtypes = [
          mtype for mtype in mtypes if mtype not in AMBIGUOUS_MTYPES
      ]
  
      if len(mtypes) == 0:
          # if there are no mtypes, this must have been reached by mistake/bug
          raise RuntimeError("no mtypes defined for scitype " + scitype)
  
      return mtypes
  
imports: import numpy
  import pandas
  import pytest
  from sktime.datatypes import MTYPE_REGISTER, SCITYPE_REGISTER
  from sktime.datatypes._check import AMBIGUOUS_MTYPES, check_is_mtype
  from sktime.datatypes._examples import get_examples
  from sktime.datatypes._vectorize import VectorizedDF, _enforce_index_freq
  from sktime.utils._testing.deep_equals import deep_equals
  from sktime.utils.pandas import df_map
  from sktime.utils.parallel import _get_parallel_test_fixtures
label_desc: Use image node_id 1 for calling a global function with example usage: _get_all_mtypes_for_scitype(scitype) and returns: mtypes