code: def test_load_provided_dataset(return_X_y, return_type):
      """Test function to check for proper loading.
  
      Check all possibilities of return_X_y and return_type.
      """
      if return_X_y:
          X, y = _load_provided_dataset(
              "UnitTest", "TRAIN", return_X_y, return_type
          )
      else:
          X = _load_provided_dataset(
              "UnitTest", "TRAIN", return_X_y, return_type
          )
  
      # Check whether object is same mtype or not, via bool
      valid, check_msg, _ = check_is_mtype(
          X, return_type, return_metadata=True, msg_return_dict="list"
      )
      msg = (
          "load_basic_motions return has unexpected type on "
          f"return_X_y = {return_X_y}, return_type = {return_type}. "
          f"Error message returned by check_is_mtype: {check_msg}"
      )
      assert valid, msg
  
file_path: sktime/sktime/datasets/tests/test_data_io.py
imports: import numpy
  import pandas
  import pytest
  from sktime.datasets import load_basic_motions, load_UCR_UEA_dataset, load_uschange
  from sktime.datasets._data_io import _list_available_datasets, _load_provided_dataset
  from sktime.datatypes import check_is_mtype, scitype_to_mtype
label_desc: Use image node_id 1 for calling a global function with example usage: test_load_provided_dataset(return_X_y, return_type) without return types