class_docstr: A set of tests for the Actor classes.
class_docstr_tok: ["A","set","of","tests","for","the","Actor","classes","."]
code: def testActorRun(self):
      rb_port = portpicker.pick_unused_port(
          portserver_address="localhost"
      )
  
      (
          env,
          agent,
          train_step,
          replay_buffer,
          rb_observer,
      ) = self._build_components(rb_port)
  
      tf_collect_policy = agent.collect_policy
      collect_policy = py_tf_eager_policy.PyTFEagerPolicy(
          tf_collect_policy, use_tf_function=True
      )
      test_actor = actor.Actor(
          env,
          collect_policy,
          train_step,
          steps_per_run=1,
          observers=[rb_observer],
      )
  
      self.assertEqual(replay_buffer.num_frames(), 0)
      for _ in range(10):
          test_actor.run()
      self.assertGreater(replay_buffer.num_frames(), 0)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import portpicker
  from six.moves import range
  import tensorflow.compat.v2
  from tf_agents.agents.dqn import dqn_agent
  from tf_agents.environments import suite_gym
  from tf_agents.metrics import py_metrics
  from tf_agents.policies import py_tf_eager_policy
  from tf_agents.system import system_multiprocessing
  from tf_agents.train import actor
  from tf_agents.train.utils import replay_buffer_utils
  from tf_agents.train.utils import spec_utils
  from tf_agents.train.utils import test_utils
  from tf_agents.train.utils import train_utils
  from tf_agents.utils import test_utils
label_desc: Use image node_id 2 for calling the ActorTest obj's underlying member method code with example usage: obj.testActorRun() without return types