code: def _make_nested_from_array(array, n_instances=20, n_columns=1):
      return pd.DataFrame(
          [
              [pd.Series(array) for _ in range(n_columns)]
              for _ in range(n_instances)
          ],
          columns=[f"col{c}" for c in range(n_columns)],
      )
  
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 9 for calling a global function with example usage: _make_nested_from_array(array, n_instances, n_columns) and returns: pd