code: def test_mtype_to_scitype(mtype, scitype):
      """Tests that mtype_to_scitype yields the correct output for a string.
  
      Parameters
      ----------
      mtype : str - mtype string, mtype belonging to scitype
      scitype : str - scitype string, scitype of mtype
  
      Raises
      ------
      AssertionError mtype_to_scitype does not convert mtype to scitype
      Exception if any is raised by mtype_to_scitype
      """
      result = mtype_to_scitype(mtype)
      msg = (
          f'mtype_to_scitype does not correctly convert mtype "{mtype}" to scitype '
          f'"{scitype}", returned {result}'
      )
      assert result == scitype, 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 1 for calling a global function with example usage: test_mtype_to_scitype(mtype, scitype) without return types