code: def testString(self):
      indx = np.random.randint(65, high=122, size=7000)
      x = [chr(i) for i in indx]
  
      y, idx, count = array_ops.unique_with_counts(x)
      tf_y, tf_idx, tf_count = self.evaluate([y, idx, count])
  
      self.assertEqual(len(x), len(tf_idx))
      self.assertEqual(len(tf_y), len(np.unique(x)))
      for i in range(len(x)):
          self.assertEqual(x[i], tf_y[tf_idx[i]].decode("ascii"))
      for value, count in zip(tf_y, tf_count):
          with self.subTest(value=value, count=count):
              v = [
                  1 if x[i] == value.decode("ascii") else 0
                  for i in range(7000)
              ]
              self.assertEqual(count, sum(v))
  
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 3 for calling the UniqueWithCountsTest obj's underlying member method code with example usage: obj.testString() without return types