code: def test_agent():
      players[0].prepare_test()
      rew, _, _, errors = evaluate(
          "halite",
          agents=[take_action, "random"],
          configuration={"randomSeed": env_seed},
          debug=True,
      )
      rew1, rew2 = rew[0][0], rew[0][1]
  
      if rew1 is None or rew2 is None:
          # Somthing wrong happends in your program(Sometimes the built-in evaluate function will raise
          #                                           timeout exception if the cpu resource is limited)
          # please check the errors to see the detailed message
          print(errors[0])
          return None, None
      return rew1, rew2
  
file_path: PARL/examples/Baselines/Halite_competition/paddle/train.py
imports: import os
  import random
  import paddle
  import numpy
  from config import config
  from rl_trainer.controller import Controller
  from parl.utils import logger, summary
  from parl.utils.window_stat import WindowStat
  from zerosum_env import make, evaluate
  from zerosum_env.envs.halite.helpers import *
label_desc: Use image node_id 2 for calling a global function with example usage: test_agent() and returns: rew1,  rew2, None,  None