class_docstr: Simple integration/smoke test for the distributed agent.
class_docstr_tok: ["Simple","integration\/smoke","test","for","the","distributed","agent","."]
docstr: Tests that the agent can run on the control suite without crashing.
docstr_tok: ["Tests","that","the","agent","can","run","on","the","control","suite","without","crashing","."]
code: def test_control_suite(self):
      """Tests that the agent can run on the control suite without crashing."""
  
      agent = d4pg.DistributedD4PG(
          environment_factory=lambda x: fakes.ContinuousEnvironment(
              bounded=True
          ),
          network_factory=make_networks,
          accelerator="CPU",
          num_actors=2,
          batch_size=32,
          min_replay_size=32,
          max_replay_size=1000,
      )
      program = agent.build()
  
      (learner_node,) = program.groups["learner"]
      learner_node.disable_run()
  
      lp.launch(program, launch_type="test_mt")
  
      learner: acme.Learner = learner_node.create_handle().dereference()
  
      for _ in range(5):
          learner.step()
  
file_path: acme/acme/agents/tf/d4pg/agent_distributed_test.py
imports: import acme
  from acme import specs
  from acme.agents.tf import d4pg
  from acme.testing import fakes
  from acme.tf import networks
  from acme.tf import utils
  import launchpad
  import numpy
  import sonnet
  from absl.testing import absltest
label_desc: Use image node_id 1 for calling the DistributedAgentTest obj's underlying member method code with example usage: obj.test_control_suite() without return types