code: def testToRunArgs(self):
      docker_config = docker_component_config.DockerComponentConfig(
          docker_server_url="http://mock.docker.server",
          environment={"name": "value"},
          privileged=True,
          volumes=["/local/etc:/local/etc"],
          ports={"2222/tcp": 3333},
      )
  
      run_args = docker_config.to_run_args()
  
      self.assertEqual(
          "http://mock.docker.server", docker_config.docker_server_url
      )
      self.assertDictEqual({"name": "value"}, run_args["environment"])
      self.assertTrue(run_args["privileged"])
      self.assertListEqual(
          ["/local/etc:/local/etc"], run_args["volumes"]
      )
      self.assertDictEqual({"2222/tcp": 3333}, run_args["ports"])
  
imports: import tensorflow
  from tfx.orchestration.config import docker_component_config
label_desc: Use image node_id 1 for calling the DockerComponentConfigTest obj's underlying member method code with example usage: obj.testToRunArgs() without return types