code: def test_load_functions(
      function,
      data_train_shape,
      data_test_shape,
      target_train_shape,
      target_test_shape,
      n_classes,
      return_X_y,
  ):
      """Test the loading functions."""
      res = function(return_X_y=return_X_y)
      if return_X_y:
          data_train, data_test, target_train, target_test = res
      else:
          data_train = res.data_train
          data_test = res.data_test
          target_train = res.target_train
          target_test = res.target_test
          assert isinstance(res.url, str)
          assert isinstance(res.DESCR, str)
      for data in (data_train, data_test, target_train, target_test):
          assert isinstance(data, np.ndarray)
  
      assert data_train.shape == data_train_shape
      assert data_test.shape == data_test_shape
      assert target_train.shape == target_train_shape
      assert target_test.shape == target_test_shape
      assert np.unique(target_train).size == n_classes
      assert np.unique(target_test).size == n_classes
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_load_functions(function, data_train_shape, data_test_shape, target_train_shape, target_test_shape, n_classes, return_X_y) without return types