class_docstr: Padding arrays to create a matrix.
class_docstr_tok: ["Padding","arrays","to","create","a","matrix","."]
code: def check_type_forward(self, in_types):
      type_check.expect(in_types.size() > 0)
  
      for i, in_type in enumerate(in_types):
          type_check._argname((in_type,), ("x{}".format(i),))
          type_check.expect(
              in_type.ndim > 0,
              in_type.shape[1:] == in_types[0].shape[1:],
              in_type.dtype == in_types[0].dtype,
          )
  
      if self.length is not None:
          for in_type in in_types:
              type_check.expect(in_type.shape[0] <= self.length)
  
file_path: chainer/chainer/functions/array/pad_sequence.py
imports: import numpy
  import six
  import chainer
  from chainer import backend
  from chainer.backends import cuda
  from chainer import function_node
  from chainer import utils
  from chainer.utils import type_check
label_desc: Use image node_id 2 for calling the PadSequence obj's underlying member method code with example usage: obj.check_type_forward(in_types) without return types