code: def test_make_panel(
      n_instances, n_columns, n_timepoints, return_mtype
  ):
      """Test that _make_panel utility returns panel data of right format."""
      X = _make_panel(
          n_instances=n_instances,
          n_columns=n_columns,
          n_timepoints=n_timepoints,
          return_mtype=return_mtype,
      )
  
      valid, _, metadata = check_is_mtype(
          X,
          mtype=return_mtype,
          return_metadata=True,
          msg_return_dict="list",
      )
      msg = f"_make_panel_X generated data does not comply with mtype {return_mtype}"
      assert valid, msg
      assert metadata["n_instances"] == n_instances
      assert metadata["is_univariate"] == (n_columns == 1)
  
file_path: sktime/sktime/utils/_testing/tests/test_panel.py
imports: import numpy
  import pandas
  import pytest
  from sktime.datatypes import check_is_mtype
  from sktime.utils._testing.panel import _make_panel, make_classification_problem, make_regression_problem
label_desc: Use image node_id 4 for calling a global function with example usage: test_make_panel(n_instances, n_columns, n_timepoints, return_mtype) without return types