code: def convert_list_of_dict_to_df_as_table(
      obj: list, store=None
  ) -> pd.DataFrame:
      if not isinstance(obj, list):
          raise TypeError("input must be a list of dict")
  
      if not np.all([isinstance(x, dict) for x in obj]):
          raise TypeError("input must be a list of dict")
  
      res = pd.DataFrame(obj)
  
      if (
          isinstance(store, dict)
          and "index" in store.keys()
          and len(store["index"]) == len(res)
      ):
          res.index = store["index"]
  
      return res
  
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 10 for calling a global function with example usage: convert_list_of_dict_to_df_as_table(obj, store) and returns: res