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