code: def test_series_item_mtype(
      scitype, mtype, fixture_index, iterate_as, iterate_cols
  ):
      """Tests __getitem__ returns correct pd-multiindex mtype.
  
      Fixtures parameterized
      ----------------------
      scitype : str - scitype of fixture
      mtype : str - mtype of fixture
      fixture_index : int - index of fixture tuple with that scitype and mtype
      iterate_as : str - level on which to iterate over
      iterate_cols : bool - whether to iterate over columns
      """
      # escape for the invalid combinations, see above
      if not _is_valid_iterate_as(scitype, iterate_as):
          return None
  
      # retrieve fixture for checking
      fixture = get_examples(mtype=mtype, as_scitype=scitype).get(
          fixture_index
      )
  
      # construct VectorizedDF - we've tested above that this works
      X_vect = VectorizedDF(
          X=fixture,
          iterate_as=iterate_as,
          is_scitype=None,
          iterate_cols=iterate_cols,
      )
  
      # get list of iterated elements - we've tested above that this works
      X_list = list(X_vect)
  
      # right mtype depends on scitype
      if iterate_as == "Series":
          correct_mtype = "pd.DataFrame"
      elif iterate_as == "Panel":
          correct_mtype = "pd-multiindex"
      elif iterate_as == "Hierarchical":
          correct_mtype = "pd_multiindex_hier"
      else:
          raise RuntimeError(
              f"found unexpected iterate_as value: {iterate_as}"
          )
  
      X_list_valid = [
          check_is_mtype(
              X,
              mtype=correct_mtype,
              scitype=iterate_as,
              msg_return_dict="list",
          )
          for X in X_list
      ]
  
      assert np.all(
          X_list_valid
      ), f"iteration elements do not conform with expected mtype {correct_mtype}"
  
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 10 for calling a global function with example usage: test_series_item_mtype(scitype, mtype, fixture_index, iterate_as, iterate_cols) and returns: None