code: def convert_list_to_dataframe(list_to_convert):
      """Convert list into a pandas data frame."""
      df = pd.DataFrame()
      for i in range(len(list_to_convert)):
          inst = list_to_convert[i]
          data = []
          data.append(pd.Series(inst))
          df[i] = data
  
      return df
  
file_path: sktime/sktime/transformations/panel/tests/test_sliding_window_segmenter_transformer.py
imports: import numpy
  import pandas
  import pytest
  from sktime.transformations.panel.segment import SlidingWindowSegmenter
  from sktime.utils._testing.panel import _make_nested_from_array
label_desc: Use image node_id 4 for calling a global function with example usage: convert_list_to_dataframe(list_to_convert) and returns: df