code: def make_transformer_problem(
      n_instances=20,
      n_columns=1,
      n_timepoints=20,
      return_numpy=True,
      random_state=None,
      panel=True,
  ):
      """Make Transformer Problem."""
      if not panel:
          X = make_transformer_problem(
              n_instances=n_instances,
              n_columns=n_columns,
              n_timepoints=n_timepoints,
              return_numpy=True,
              random_state=random_state,
              panel=True,
          )
          if return_numpy:
              X = X[0]
          else:
              X = pd.DataFrame(X[0])
      else:
          X = _make_panel_X(
              n_instances=n_instances,
              n_columns=n_columns,
              n_timepoints=n_timepoints,
              return_numpy=True,
              random_state=random_state,
          )
          if not return_numpy:
              arr = []
              for data in X:
                  arr.append(pd.DataFrame(data))
              X = arr
  
      return X
  
file_path: sktime/sktime/utils/_testing/panel.py
imports: import numpy
  import pandas
  from sklearn.utils.validation import check_random_state
  from sktime.datatypes import convert
label_desc: Use image node_id 8 for calling a global function with example usage: make_transformer_problem(n_instances, n_columns, n_timepoints, return_numpy, random_state, panel) and returns: X