code: def test_replay_capacity_checked(self):
      env, _ = self.make_env_and_successful_return(test=False)
      q_func = self.make_q_func(env)
      opt = self.make_optimizer(env, q_func)
      explorer = self.make_explorer(env)
      rbuf = chainerrl.replay_buffer.ReplayBuffer(capacity=90)
      with self.assertRaises(ValueError):
          self.make_dqn_agent(
              env=env,
              q_func=q_func,
              opt=opt,
              explorer=explorer,
              rbuf=rbuf,
              gpu=None,
          )
  
imports: import unittest
  from chainer import testing
  import numpy
  import basetest_dqn_like
  import chainerrl
  from chainerrl.agents.dqn import compute_value_loss
  from chainerrl.agents.dqn import compute_weighted_value_loss
  from chainerrl.agents.dqn import DQN
  from basetest_training import _TestBatchTrainingMixin
label_desc: Use image node_id 2 for calling the TestDQNOnDiscreteABC obj's underlying member method code with example usage: obj.test_replay_capacity_checked() without return types