class_docstr: A set of tests for the Actor classes.
class_docstr_tok: ["A","set","of","tests","for","the","Actor","classes","."]
code: def _build_components(self, rb_port):
      env = suite_gym.load("CartPole-v0")
  
      (
          _,
          action_tensor_spec,
          time_step_tensor_spec,
      ) = spec_utils.get_tensor_specs(env)
      train_step = train_utils.create_train_step()
  
      q_net = dist_test_utils.build_dummy_sequential_net(
          fc_layer_params=(100,), action_spec=action_tensor_spec
      )
  
      agent = dqn_agent.DqnAgent(
          time_step_tensor_spec,
          action_tensor_spec,
          q_network=q_net,
          optimizer=tf.compat.v1.train.AdamOptimizer(
              learning_rate=0.001
          ),
          train_step_counter=train_step,
      )
  
      (
          replay_buffer,
          rb_observer,
      ) = replay_buffer_utils.get_reverb_buffer_and_observer(
          agent.collect_data_spec,
          sequence_length=2,
          replay_capacity=1000,
          port=rb_port,
      )
  
      return env, agent, train_step, replay_buffer, rb_observer
  
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 1 for calling the ActorTest obj's underlying member method code with example usage: obj._build_components(rb_port) and returns: env,  agent,  train_step,  replay_buffer,  rb_observer