code: def testOrderedByAppearance(self):
      x = np.array(
          [3, 5, 3, 4, 1, 4, 9, 8, 6, 3, 5, 7, 8, 8, 4, 6, 4, 2, 5, 6]
      )
      true_y = np.array([3, 5, 4, 1, 9, 8, 6, 7, 2])
      true_idx = np.array(
          [0, 1, 0, 2, 3, 2, 4, 5, 6, 0, 1, 7, 5, 5, 2, 6, 2, 8, 1, 6]
      )
      true_count = np.array([3, 3, 4, 1, 1, 3, 3, 1, 1])
      y, idx, count = array_ops.unique_with_counts(x)
      tf_y, tf_idx, tf_count = self.evaluate([y, idx, count])
      self.assertAllEqual(tf_y, true_y)
      self.assertAllEqual(tf_idx, true_idx)
      self.assertAllEqual(tf_count, true_count)
  
imports: import numpy
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_array_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 10 for calling the UniqueWithCountsTest obj's underlying member method code with example usage: obj.testOrderedByAppearance() without return types