code: def testTrueLogExpectedCount(self):
      with self.cached_session():
          true_classes = constant_op.constant(
              [[1, 2], [0, 4], [3, 3]], dtype=dtypes.int64
          )
          (
              _,
              true_expected_count,
              _,
          ) = candidate_sampling_ops.all_candidate_sampler(
              true_classes, self.NUM_TRUE, self.NUM_SAMPLED, True
          )
          true_log_expected_count = math_ops.log(true_expected_count)
          result = self.evaluate(true_log_expected_count)
  
      self.assertAllEqual(
          result, [[0.0] * self.NUM_TRUE] * self.BATCH_SIZE
      )
      self.assertEqual(
          true_expected_count.get_shape(),
          [self.BATCH_SIZE, self.NUM_TRUE],
      )
      self.assertEqual(
          true_log_expected_count.get_shape(),
          [self.BATCH_SIZE, self.NUM_TRUE],
      )
  
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 3 for calling the RangeSamplerOpsTest obj's underlying member method code with example usage: obj.testTrueLogExpectedCount() without return types