code: def play_n_episodes(player, predfunc, nr, render=False):
      logger.info("Start Playing ... ")
      for k in range(nr):
          score = play_one_episode(player, predfunc, render=render)
          print("{}/{}, score={}".format(k, nr, score))
  
file_path: tensorpack/examples/DeepQNetwork/common.py
imports: import multiprocessing
  import numpy
  import random
  import time
  from six.moves import queue
  from tensorpack.callbacks import Callback
  from tensorpack.utils import logger, get_tqdm
  from tensorpack.utils.concurrency import ShareSessionThread, StoppableThread
  from tensorpack.utils.stats import StatCounter
label_desc: Use image node_id 2 for calling a global function with example usage: play_n_episodes(player, predfunc, nr, render) without return types