code: def from_long_to_multiindex(obj, store=None):
      ixcols = obj.columns[[0, 1]]
      Xmi = pd.pivot(
          obj,
          columns=obj.columns[2],
          values=obj.columns[3],
          index=ixcols,
      )
  
      Xmi.columns.name = None
  
      return Xmi
  
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 26 for calling a global function with example usage: from_long_to_multiindex(obj, store) and returns: Xmi