code: def test_unary_op_out(self, dtype):
      a = cupy.array(numpy.array([0, 1, 2]), dtype=dtype)
      b = a.get()
      outb = numpy.sin(b)
      # pre-make output with same type as input
      outa = cupy.array(numpy.array([0, 1, 2]), dtype=outb.dtype)
      numpy.sin(a, out=outa)
      assert numpy.allclose(outa.get(), outb)
  
imports: import numpy
  import pytest
  import cupy
  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.test_unary_op_out(dtype) without return types