class_docstr: RoI max pooling over a set of 2d planes.
class_docstr_tok: ["RoI","max","pooling","over","a","set","of","2d","planes","."]
code: def check_type_forward(self, in_types):
      type_check.expect(in_types.size() == 3)
  
      x_type, roi_type, roi_index_type = in_types
      type_check.expect(
          x_type.dtype.kind == "f",
          x_type.ndim == 4,
          x_type.dtype == roi_type.dtype,
          roi_type.ndim == 2,
          roi_type.shape[1] == 4,
          roi_index_type.dtype == numpy.int32,
          roi_index_type.ndim == 1,
          roi_type.shape[0] == roi_index_type.shape[0],
      )
  
file_path: chainer/chainer/functions/pooling/roi_max_pooling_2d.py
imports: import numbers
  import numpy
  import six
  import chainer
  from chainer.backends import cuda
  from chainer import function
  from chainer import utils
  from chainer.utils import type_check
  from chainer.functions.pooling.roi_pooling_2d import _roi_pooling_slice
label_desc: Use image node_id 2 for calling the ROIMaxPooling2D obj's underlying member method code with example usage: obj.check_type_forward(in_types) without return types