code: def _get_action_step(action, log_prob):
      step = policy_step.PolicyStep(action=tf.convert_to_tensor(action))
      return step._replace(
          info=policy_step.set_log_probability(
              step.info, tf.convert_to_tensor(log_prob)
          )
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import numpy
  import tensorflow
  import tensorflow_probability
  from tf_agents.bandits.agents import exp3_agent
  from tf_agents.bandits.drivers import driver_utils
  from tf_agents.specs import tensor_spec
  from tf_agents.trajectories import policy_step
  from tf_agents.trajectories import time_step
label_desc: Use image node_id 2 for calling a global function with example usage: _get_action_step(action, log_prob) and returns: step