code: def testTieBreaking(self):
      num_actions = 4
      # Given some action values that are all equal:
      action_values = [1.1] * num_actions
      epsilon = 0.0
  
      # We expect the policy to be a uniform distribution.
      expected = [1 / num_actions] * num_actions
  
      result = policy_ops.epsilon_greedy(action_values, epsilon).probs
      with self.test_session() as sess:
          self.assertAllClose(sess.run(result), expected)
  
file_path: trfl/trfl/policy_ops_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow.compat.v1
  from trfl import policy_ops
label_desc: Use image node_id 1 for calling the EpsilonGreedyTest obj's underlying member method code with example usage: obj.testTieBreaking() without return types