code: def check_array_scalar_op(self, op, xp, x_type, y_type, trans=False):
      a = xp.array([[1, 2, 3], [4, 5, 6]], x_type)
      if trans:
          a = a.T
  
      if xp is cupy:
          with self.stream:
              a = DummyObjectWithCudaArrayInterface(a, self.ver)
              return getattr(xp, op)(a, y_type(3))
      else:
          return getattr(xp, op)(a, y_type(3))
  
imports: import unittest
  import pytest
  from cupy_backends.cuda import stream
  import cupy
  from cupy import _core
  from cupy import testing
label_desc: Use image node_id 2 for calling the TestArrayUfunc obj's underlying member method code with example usage: obj.check_array_scalar_op(op, xp, x_type, y_type, trans) and returns: getattr, getattr