code: def test(env, agents, config):
      win_number = 0
      episode_rewards = 0
      for ep_id in range(config["test_episode_n"]):
          _, ep_reward = run_episode(env, agents, config, test=True)
          episode_rewards += ep_reward
          if ep_reward > config["threshold"]:
              win_number += 1
      return (
          win_number / config["test_episode_n"],
          episode_rewards / config["test_episode_n"],
      )
  
file_path: PARL/benchmark/torch/coma/train.py
imports: from smac.env import StarCraft2Env
  import numpy
  import os
  from sc2_model import ComaModel
  from sc2_agent import Agents
  from parl.algorithms import COMA
  from parl.utils import summary
label_desc: Use image node_id 3 for calling a global function with example usage: test(env, agents, config) and returns: unknown,  unknown