code: def from_nested_to_multi_index_adp(obj, store=None):
      if isinstance(store, dict):
          store["instance_names"] = obj.index.names
  
      if isinstance(store, dict) and "index_names" in store.keys():
          instance_index = store["index_names"][0]
          time_index = store["index_names"][1]
      else:
          instance_index = obj.index.names[0]
          time_index = "timepoints"
  
      res = from_nested_to_multi_index(
          X=obj, instance_index=instance_index, time_index=time_index
      )
  
      return res
  
imports: import numpy
  import pandas
  from sktime.datatypes._convert_utils._coerce import _coerce_df_dtypes
  from sktime.datatypes._convert_utils._convert import _extend_conversions
  from sktime.datatypes._panel._registry import MTYPE_LIST_PANEL
  from sktime.utils.pandas import df_map
  from sktime.utils.validation._dependencies import _check_soft_dependencies
label_desc: Use image node_id 34 for calling a global function with example usage: from_nested_to_multi_index_adp(obj, store) and returns: res