class_docstr: Base pairwise transformer for panel data template class.
  
  The base pairwise transformer specifies the methods and method signatures that all
  pairwise transformers have to implement.
  
  Specific implementations of these methods is deferred to concrete classes.
class_docstr_tok: ["Base","pairwise","transformer","for","panel","data","template","class",".","The","base","pairwise","transformer","specifies","the","methods","and","method","signatures","that","all","pairwise","transformers","have","to","implement",".","Specific","implementations","of","these","methods","is","deferred","to","concrete","classes","."]
docstr: Check and coerce input data.
  
  Method used to check the input and convert Series/Panel input
      to internally used format, as defined in X_inner_mtype tag
  
  Parameters
  ----------
  X: List of dfs, Numpy of dfs, 3d numpy
      sktime data container compliant with the Series or Panel scitype
      The value to be checked
  var_name: str, variable name to print in error messages
  
  Returns
  -------
  X: Panel data container of a supported format in X_inner_mtype
      usually df-list, list of pd.DataFrame, unless overridden
docstr_tok: ["Check","and","coerce","input","data",".","Method","used","to","check","the","input","and","convert","Series\/Panel","input","to","internally","used","format",",","as","defined","in","X_inner_mtype","tag","Parameters","--","--","--","--","--","X",":","List","of","dfs",",","Numpy","of","dfs",",","3d","numpy","sktime","data","container","compliant","with","the","Series","or","Panel","scitype","The","value","to","be","checked","var_name",":","str",",","variable","name","to","print","in","error","messages","Returns","--","--","--","-","X",":","Panel","data","container","of","a","supported","format","in","X_inner_mtype","usually","df-list",",","list","of","pd.DataFrame",",","unless","overridden"]
code: def _pairwise_panel_x_check(self, X, var_name="X"):
      """Check and coerce input data.
  
      Method used to check the input and convert Series/Panel input
          to internally used format, as defined in X_inner_mtype tag
  
      Parameters
      ----------
      X: List of dfs, Numpy of dfs, 3d numpy
          sktime data container compliant with the Series or Panel scitype
          The value to be checked
      var_name: str, variable name to print in error messages
  
      Returns
      -------
      X: Panel data container of a supported format in X_inner_mtype
          usually df-list, list of pd.DataFrame, unless overridden
      """
      check_res = check_is_scitype(
          X, ["Series", "Panel"], return_metadata=[], var_name=var_name
      )
      X_valid = check_res[0]
      metadata = check_res[2]
  
      if not X_valid:
          msg = (
              "X and X2 must be in an sktime compatible format, "
              "of scitype Series or Panel, "
              "for instance a pandas.DataFrame with sktime compatible time indices, "
              "or with MultiIndex and last(-1) level an sktime compatible time index."
              " See the data format tutorial examples/AA_datatypes_and_datasets.ipynb"
          )
          raise TypeError(msg)
  
      X_scitype = metadata["scitype"]
  
      # if the input is a single series, convert it to a Panel
      if X_scitype == "Series":
          X = convert_Series_to_Panel(X)
  
      # can't be anything else if check_is_scitype is working properly
      elif X_scitype != "Panel":
          raise RuntimeError(
              "Unexpected error in check_is_scitype, check validity"
          )
  
      X_inner_mtype = self.get_tag("X_inner_mtype")
      X_coerced = convert_to(
          X, to_type=X_inner_mtype, as_scitype="Panel"
      )
  
      return X_coerced
  
imports: from sktime.base import BaseEstimator
  from sktime.datatypes import check_is_scitype, convert_to
  from sktime.datatypes._series_as_panel import convert_Series_to_Panel
label_desc: Use image node_id 11 for calling the BasePairwiseTransformerPanel obj's underlying member method code with example usage: obj._pairwise_panel_x_check(X, var_name) and returns: X_coerced