code: def _input_check(self, x, y):
      if len(x.shape) < 3:
          raise RuntimeError(
              f"Invalid data x with {len(x.shape)} dim where 3 dim is required."
          )
      if len(y.shape) < 3:
          raise RuntimeError(
              f"Invalid data y with {len(y.shape)} dim where 3 dim is required."
          )
      if y.shape[-1] > x.shape[-1]:
          raise RuntimeError(
              f"output dim should not larger than input dim,\
                                  while we get {y.shape[-1]} > {x.shape[-1]}."
          )
  
file_path: analytics-zoo/pyzoo/zoo/chronos/model/Seq2Seq_pytorch.py
imports: import torch
  import torch.nn
  from zoo.orca.automl.model.base_pytorch_model import PytorchBaseModel, PYTORCH_REGRESSION_LOSS_MAP
  import numpy
label_desc: Use image node_id 2 for calling the Seq2SeqPytorch obj's underlying member method code with example usage: obj._input_check(x, y) without return types