code: def convert_Hierarchical_to_Panel(
      obj, store=None, return_to_mtype=False
  ):
      """Convert single-series hierarchical object to a series.
  
      Removes one dimensions to obtain a panel, by removing 1 level from MultiIndex.
  
      Assumes input is conformant with Hierarchical mtype.
      This method does not perform full mtype checks, use mtype or check_is_mtype for
      checks.
  
      Parameters
      ----------
      obj: an object of scitype Hierarchical
      store: dict, optional
          converter store for back-conversion
      return_to_mtype: bool, optional (default=False)
          if True, also returns the str of the mtype converted to
  
      Returns
      -------
      returns a data container of mtype pd-multiindex, of scitype Panel
      """
      obj_df = convert_to(
          obj, to_type="pd_multiindex_hier", as_scitype="Hierarchical"
      )
      obj_df = obj_df.copy()
      obj_df.index = obj_df.index.get_level_values([-2, -1])
  
      if return_to_mtype:
          return obj_df, "pd-multiindex"
      else:
          return obj_df
  
file_path: sktime/sktime/datatypes/_series_as_panel/_convert.py
imports: import numpy
  import pandas
  from sktime.datatypes import convert_to, scitype
label_desc: Use image node_id 6 for calling a global function with example usage: convert_Hierarchical_to_Panel(obj, store, return_to_mtype) and returns: obj_df,  str, obj_df