code: def check_type_forward(self, in_types):
      type_check._argname(in_types, ("a", "b"))
      n_nones = len([item for item in self.slices if item is None])
      valid_slice = len(self.slices) - n_nones
      type_check.expect(in_types[0].ndim >= valid_slice)
  
file_path: chainer/chainer/functions/array/scatter_add.py
imports: import numpy
  import chainer
  from chainer import backend
  from chainer.backends import cuda
  from chainer import function_node
  from chainer.utils import type_check
  import chainerx
label_desc: Use image node_id 2 for calling the ScatterAdd obj's underlying member method code with example usage: obj.check_type_forward(in_types) without return types