code: def test_data_loaders(dataset):
      """Assert if datasets are loaded correctly.
  
      dataset: dictionary with values to assert against should contain:
          'columns' : list with column names in correct order,
          'len_y'   : length of the y series (int),
          'len_X'   : length of the X series/dataframe (int),
          'data_types_X' : dictionary with column name keys and dtype as value,
          'data_type_y'  : dtype if y column (string)
          'data'    : tuple with y series and X series/dataframe if one is not
                      applicable fill with None value,
      """
      checks = _CHECKS[dataset]
      y = checks["data"][0]
      X = checks["data"][1]
  
      if y is not None:
          assert isinstance(y, pd.Series)
          assert len(y) == checks["len_y"]
          assert y.dtype == checks["data_type_y"]
  
      if X is not None:
          if len(checks["data_types_X"]) > 1:
              assert isinstance(X, pd.DataFrame)
          else:
              assert isinstance(X, pd.Series)
  
          assert X.columns.values.tolist() == checks["columns"]
  
          for col, dt in checks["data_types_X"].items():
              assert X[col].dtype == dt
  
          assert len(X) == checks["len_X"]
  
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 5 for calling a global function with example usage: test_data_loaders(dataset) without return types