code: def testActionsWithinRange(self):
      batch_size = 3
      num_obs_dims = 5
      obs_spec = tensor_spec.TensorSpec([num_obs_dims], tf.float32)
      action_spec = tensor_spec.BoundedTensorSpec(
          [2, 3], tf.float32, 2.0, 3.0
      )
      actor_net = actor_network.ActorNetwork(obs_spec, action_spec)
  
      obs = tf.random.uniform([batch_size, num_obs_dims])
      actions, _ = actor_net(obs)
      self.evaluate(tf.compat.v1.global_variables_initializer())
      actions_ = self.evaluate(actions)
      self.assertTrue(np.all(actions_ >= action_spec.minimum))
      self.assertTrue(np.all(actions_ <= action_spec.maximum))
  
file_path: agents/tf_agents/agents/ddpg/actor_network_test.py
imports: import numpy
  import tensorflow
  from tf_agents.agents.ddpg import actor_network
  from tf_agents.specs import tensor_spec
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 6 for calling the ActorNetworkTest obj's underlying member method code with example usage: obj.testActionsWithinRange() without return types