code: def convert_MvS_to_UvS_as_Series(
      obj: pd.DataFrame, store=None
  ) -> pd.Series:
      if not isinstance(obj, pd.DataFrame):
          raise TypeError("input is not a pd.DataFrame")
  
      obj = _coerce_df_dtypes(obj)
  
      if len(obj.columns) != 1:
          raise ValueError(
              "input must be univariate pd.DataFrame, with one column"
          )
  
      if isinstance(store, dict):
          store["columns"] = obj.columns[[0]]
  
      y = obj[obj.columns[0]]
  
      if isinstance(store, dict) and "name" in store.keys():
          y.name = store["name"]
      else:
          y.name = None
  
      return y
  
file_path: sktime/sktime/datatypes/_series/_convert.py
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._registry import MTYPE_LIST_SERIES
  from sktime.utils.validation._dependencies import _check_soft_dependencies
label_desc: Use image node_id 3 for calling a global function with example usage: convert_MvS_to_UvS_as_Series(obj, store) and returns: y