code: def check_binary(self, name, xp, dtype):
      a = testing.shaped_arange((2, 3), xp, dtype)
      b = testing.shaped_reverse_arange((2, 3), xp, dtype)
      return getattr(xp, name)(a, b)
  
file_path: cupy/tests/cupy_tests/logic_tests/test_ops.py
imports: import unittest
  from cupy import testing
label_desc: Use image node_id 2 for calling the TestOps obj's underlying member method code with example usage: obj.check_binary(name, xp, dtype) and returns: getattr