code: def test_binary_mixed_op(self, dtype):
      a1 = cupy.array(numpy.array([0, 1, 2]), dtype=dtype)
      a2 = cupy.array(numpy.array([0, 1, 2]), dtype=dtype).get()
      with pytest.raises(TypeError):
          # attempt to add cupy and numpy arrays
          numpy.add(a1, a2)
      with pytest.raises(TypeError):
          # check reverse order
          numpy.add(a2, a1)
      with pytest.raises(TypeError):
          # reject numpy output from cupy
          numpy.add(a1, a1, out=a2)
      with pytest.raises(TypeError):
          # reject cupy output from numpy
          numpy.add(a2, a2, out=a1)
      with pytest.raises(ValueError):
          # bad form for out=
          # this is also an error with numpy array
          numpy.sin(a1, out=())
      with pytest.raises(ValueError):
          # bad form for out=
          # this is also an error with numpy array
          numpy.sin(a1, out=(a1, a1))
  
imports: import numpy
  import pytest
  import cupy
  from cupy import testing
label_desc: Use image node_id 5 for calling the TestArrayUfunc obj's underlying member method code with example usage: obj.test_binary_mixed_op(dtype) without return types