class_docstr: Abstract base class for time series panel tasks, e.g., classifiers, regressors.
  
  The class contains boilerplate for checks and data conversions,
  which are common to multiple descendants, most importantly,
  BaseClassifier and BaseRegressor.
docstr: Convert output y to original format.
  
  Parameters
  ----------
  y : np.ndarray or pd.DataFrame
      output to convert
  
  Returns
  -------
  y : np.ndarray or pd.DataFrame
docstr_tok: ["Convert","output","y","to","original","format",".","Parameters","--","--","--","--","--","y",":","np.ndarray","or","pd.DataFrame","output","to","convert","Returns","--","--","--","-","y",":","np.ndarray","or","pd.DataFrame"]
code: def _convert_output_y(self, y):
      """Convert output y to original format.
  
      Parameters
      ----------
      y : np.ndarray or pd.DataFrame
          output to convert
  
      Returns
      -------
      y : np.ndarray or pd.DataFrame
      """
      # for consistency with legacy behaviour:
      # output is coerced to numpy1D in case of univariate output
      if not self._y_metadata["is_univariate"]:
          output_mtype = self._y_metadata["mtype"]
          converter_store = self._converter_store_y
      else:
          output_mtype = "numpy1D"
          converter_store = None
  
      # inner return mtype is what we convert from
      # special treatment for 1D numpy array
      # this can be returned in composites due to
      # current downwards compatible choice "1D return is always numpy"
      if isinstance(y, np.ndarray) and y.ndim == 1:
          inner_return_mtype = "numpy1D"
      else:
          inner_return_mtype = self._y_inner_mtype
  
      y = convert(
          y,
          from_type=inner_return_mtype,
          to_type=output_mtype,
          as_scitype="Table",
          store=converter_store,
          store_behaviour="freeze",
      )
      return y
  
file_path: sktime/sktime/base/_base_panel.py
imports: import numpy
  import pandas
  from sktime.base import BaseEstimator
  from sktime.datatypes import MTYPE_LIST_PANEL, MTYPE_LIST_TABLE, VectorizedDF, check_is_error_msg, check_is_scitype, convert
  from sktime.utils.warnings import warn
label_desc: Use image node_id 7 for calling the BasePanelMixin obj's underlying member method code with example usage: obj._convert_output_y(y) and returns: y