code: def convert_df_to_list_of_dict_as_table(
      obj: pd.DataFrame, store=None
  ) -> list:
      if not isinstance(obj, pd.DataFrame):
          raise TypeError("input is not a pd.DataFrame")
  
      ret_dict = [obj.loc[i].to_dict() for i in obj.index]
  
      if isinstance(store, dict):
          store["index"] = obj.index
  
      return ret_dict
  
file_path: sktime/sktime/datatypes/_table/_convert.py
imports: import numpy
  import pandas
  from sktime.datatypes._convert_utils._convert import _extend_conversions
  from sktime.datatypes._table._registry import MTYPE_LIST_TABLE
label_desc: Use image node_id 11 for calling a global function with example usage: convert_df_to_list_of_dict_as_table(obj, store) and returns: ret_dict