code: def check_type_forward(self, in_types):
      type_check.expect(
          in_types.size() == len(self.forward_func.indices)
      )
  
      for actual_type, input_info in six.moves.zip(
          in_types, self.forward_func.indices
      ):
          expect_type = input_info[0].variable.type
          # Theano cannot check shapes of variables
          type_check.expect(
              actual_type.ndim == expect_type.ndim,
              actual_type.dtype == expect_type.numpy_dtype,
          )
  
file_path: chainer/chainer/functions/theano/theano_function.py
imports: import six
  from chainer import backend
  from chainer.backends import cuda
  from chainer import function
  from chainer.utils import type_check
label_desc: Use image node_id 2 for calling the TheanoFunction obj's underlying member method code with example usage: obj.check_type_forward(in_types) without return types