code: def _action(
      self,  # pytype: disable=signature-mismatch  # overriding-parameter-count-checks
      time_step: ts.TimeStep,
      policy_state: types.NestedArray,
  ) -> ps.PolicyStep:
      random_action = array_spec.sample_spec_nest(
          self._action_spec, self._rng
      )
  
      return ps.PolicyStep(random_action, policy_state)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tf_agents.policies import batched_py_policy
  from tf_agents.policies import py_policy
  from tf_agents.specs import array_spec
  from tf_agents.trajectories import policy_step
  from tf_agents.trajectories import time_step
  from tf_agents.typing import types
label_desc: Use image node_id 2 for calling the MockPyPolicy obj's underlying member method code with example usage: obj._action(time_step, policy_state) and returns: ps