code: def disable_train(chain):
      call_orig = chain.__call__
  
      def call_test(self, x):
          with chainer.using_config("train", False):
              return call_orig(self, x)
  
      chain.__call__ = call_test
  
imports: import copy
  from logging import getLogger
  import chainer
  from chainer import cuda
  import chainer.functions
  from chainerrl.agent import AttributeSavingMixin
  from chainerrl.agent import BatchAgent
  from chainerrl.misc.batch_states import batch_states
  from chainerrl.misc.copy_param import synchronize_parameters
  from chainerrl.recurrent import Recurrent
  from chainerrl.recurrent import RecurrentChainMixin
  from chainerrl.recurrent import state_kept
  from chainerrl.replay_buffer import batch_experiences
  from chainerrl.replay_buffer import ReplayUpdater
label_desc: Use image node_id 1 for calling a global function with example usage: disable_train(chain) and returns: call_orig