code: def check_type_forward(self, in_types):
      type_check._argname(in_types, ("pred", "true"))
      pred_type, true_type = in_types
  
      type_check.expect(
          pred_type.dtype.kind == "f", true_type.dtype.kind == "f"
      )
  
      type_check.expect(
          pred_type.shape == true_type.shape,
      )
  
file_path: chainer/chainer/functions/evaluation/r2_score.py
imports: from chainer import backend
  from chainer import function
  from chainer.utils import type_check
label_desc: Use image node_id 2 for calling the R2_score obj's underlying member method code with example usage: obj.check_type_forward(in_types) without return types