code: def test_unique(self, order):
      @jit.rawkernel()
      def unique(x, size):
          it = jit.thrust.unique(jit.thrust.device, x.begin(), x.end())
          size[0] = it - x.begin()
  
      x = cupy.array([1, 3, 3, 3, 2, 2, 1])
      size = cupy.zeros((1,), dtype=numpy.int32)
      unique[1, 1](x, size)
  
      testing.assert_array_equal(
          size, cupy.array([4], dtype=numpy.int32)
      )
      testing.assert_array_equal(x[:4], cupy.array([1, 3, 2, 1]))
  
imports: import numpy
  import pytest
  import cupy
  from cupy import testing
  from cupy_backends.cuda.api import runtime
  from cupyx import jit
label_desc: Use image node_id 51 for calling the TestThrust obj's underlying member method code with example usage: obj.test_unique(order) without return types