code: def generate_example_long_table(
      num_cases=50, series_len=20, num_dims=2
  ):
      """Generate example from long table format file.
  
      Parameters
      ----------
      num_cases: int
          Number of cases.
      series_len: int
          Length of the series.
      num_dims: int
          Number of dimensions.
  
      Returns
      -------
      DataFrame
      """
      rows_per_case = series_len * num_dims
      total_rows = num_cases * series_len * num_dims
  
      case_ids = np.empty(total_rows, dtype=int)
      idxs = np.empty(total_rows, dtype=int)
      dims = np.empty(total_rows, dtype=int)
      vals = np.random.rand(total_rows)
  
      for i in range(total_rows):
          case_ids[i] = int(i / rows_per_case)
          rem = i % rows_per_case
          dims[i] = int(rem / series_len)
          idxs[i] = rem % series_len
  
      df = pd.DataFrame()
      df["case_id"] = pd.Series(case_ids)
      df["dim_id"] = pd.Series(dims)
      df["reading_id"] = pd.Series(idxs)
      df["value"] = pd.Series(vals)
      return df
  
file_path: sktime/sktime/datasets/_data_io.py
imports: import os
  import shutil
  import tempfile
  import zipfile
  from urllib.request import urlretrieve
  import numpy
  import pandas
  from sktime.datasets._readers_writers.ts import load_from_tsfile
  from sktime.datasets._readers_writers.utils import _alias_mtype_check
  from sktime.datatypes import convert
  from sktime.datatypes._panel._convert import _make_column_names
label_desc: Use image node_id 7 for calling a global function with example usage: generate_example_long_table(num_cases, series_len, num_dims) and returns: df