code: def testActionIsInRange(self):
      policy = ou_noise_policy.OUNoisePolicy(self._wrapped_policy)
      action_step = policy.action(self._time_step_batch)
      self.assertEqual(action_step.action.shape.as_list(), [2, 1])
      self.assertEqual(action_step.action.dtype, tf.float32)
      self.evaluate(tf.compat.v1.global_variables_initializer())
      self.evaluate(tf.compat.v1.local_variables_initializer())
      actions_ = self.evaluate(action_step.action)
      self.assertTrue(np.all(actions_ >= self._action_spec.minimum))
      self.assertTrue(np.all(actions_ <= self._action_spec.maximum))
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import tensorflow
  from tf_agents.networks import network
  from tf_agents.policies import actor_policy
  from tf_agents.policies import ou_noise_policy
  from tf_agents.specs import tensor_spec
  from tf_agents.trajectories import time_step
  from tf_agents.utils import test_utils
label_desc: Use image node_id 5 for calling the OuNoisePolicyTest obj's underlying member method code with example usage: obj.testActionIsInRange() without return types