code: def test_mtype_to_scitype_list():
      """Tests that mtype_to_scitype yields the correct output for a list.
  
      Parameters
      ----------
      mtype : str - mtype string
      scitype : str - scitype string, belonging to mtype
  
      Raises
      ------
      AssertionError mtype_to_scitype does not convert mtype to scitype
      Exception if any is raised by mtype_to_scitype
      """
      mtype_list = [k[0] for k in MTYPE_REGISTER]
      expected_scitype_list = [k[1] for k in MTYPE_REGISTER]
      result = mtype_to_scitype(mtype_list)
      msg = (
          "mtype_to_scitype does not correctly convert list of mtypes"
          " to list of scitypes"
      )
      assert result == expected_scitype_list, msg
  
imports: import pytest
  from sktime.datatypes._registry import MTYPE_REGISTER, MTYPE_SOFT_DEPS, mtype_to_scitype, scitype_to_mtype
  from sktime.utils.validation._dependencies import _check_soft_dependencies
label_desc: Use image node_id 2 for calling a global function with example usage: test_mtype_to_scitype_list() without return types