code: def testTrueCandidates(self):
      with self.cached_session() as sess:
          indices = constant_op.constant([0, 0, 1, 1, 2, 2])
          true_candidates_vec = constant_op.constant([1, 2, 0, 4, 3, 3])
          true_candidates_matrix = array_ops.reshape(
              true_candidates_vec, [self.BATCH_SIZE, self.NUM_TRUE]
          )
          indices_val, true_candidates_val = sess.run(
              [indices, true_candidates_matrix]
          )
  
      self.assertAllEqual(indices_val, [0, 0, 1, 1, 2, 2])
      self.assertAllEqual(true_candidates_val, self.TRUE_LABELS)
  
file_path: tensorflow-upstream/tensorflow/python/kernel_tests/random/candidate_sampler_ops_test.py
imports: import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import candidate_sampling_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the RangeSamplerOpsTest obj's underlying member method code with example usage: obj.testTrueCandidates() without return types