code: def _create_test_distances(
      n_instance, n_columns, n_timepoints, random_state=1
  ):
      if n_instance > 1:
          return _make_panel_X(
              n_instances=n_instance,
              n_columns=n_columns,
              n_timepoints=n_timepoints,
              random_state=random_state,
          )
      else:
          return _make_series(
              n_timepoints, n_columns, random_state=random_state
          )
  
imports: import time
  from typing import Callable
  from sktime.datatypes import convert_to
  from sktime.utils._testing.panel import _make_panel_X
  from sktime.utils._testing.series import _make_series
label_desc: Use image node_id 2 for calling a global function with example usage: _create_test_distances(n_instance, n_columns, n_timepoints, random_state) and returns: _make_panel_X, _make_series