class_docstr: Tests for configuring Atari agents using gin.
  
    
class_docstr_tok: ["Tests","for","configuring","Atari","agents","using","gin","."]
docstr: Test DQNAgent configuration using the default gin config.
docstr_tok: ["Test","DQNAgent","configuration","using","the","default","gin","config","."]
code: def testOverrideRunnerParams(self):
      """Test DQNAgent configuration using the default gin config."""
      logging.info("####### Training the DQN agent #####")
      logging.info("####### DQN base_dir: %s", self._base_dir)
      gin_files = ["dopamine/agents/dqn/configs/dqn.gin"]
      gin_bindings = [
          'TrainRunner.base_dir = "{}"'.format(self._base_dir),
          "Runner.log_every_n = 1729",
          "WrappedReplayBuffer.replay_capacity = 100",  # To prevent OOM.
          "create_agent.agent_name = 'dqn'",
      ]
      run_experiment.load_gin_configs(gin_files, gin_bindings)
      runner = run_experiment.TrainRunner(
          create_agent_fn=run_experiment.create_agent,
          create_environment_fn=atari_lib.create_atari_environment,
      )
      self.assertEqual(runner._base_dir, self._base_dir)
      self.assertEqual(runner._log_every_n, 1729)
      shutil.rmtree(self._base_dir)
  
imports: import datetime
  import os
  import shutil
  from absl import flags
  from absl import logging
  from dopamine.discrete_domains import atari_lib
  from dopamine.discrete_domains import run_experiment
  import gin.tf
  import tensorflow
label_desc: Use image node_id 3 for calling the GinConfigTest obj's underlying member method code with example usage: obj.testOverrideRunnerParams() without return types