code: def print_progress(
      averaged_rewards,
      last_num_episodes,
      start_time,
      time_limit,
      p_valid_params,
  ):
      """
      Print progress bar for preset run test
      :param averaged_rewards: average rewards of test
      :param last_num_episodes: last episode number
      :param start_time: start time of test
      :param time_limit: time out of test
      :param p_valid_params: preset validation parameters
      """
      max_episodes_to_archive = (
          p_valid_params.max_episodes_to_achieve_reward
      )
      min_reward = p_valid_params.min_reward_threshold
      avg_reward = round(averaged_rewards[-1], 1)
      percentage = int(
          (100 * last_num_episodes) / max_episodes_to_archive
      )
      cur_time = round(time.time() - start_time, 2)
  
      sys.stdout.write(
          "\rReward: ({}/{})".format(avg_reward, min_reward)
      )
      sys.stdout.write(
          " Time (sec): ({}/{})".format(cur_time, time_limit)
      )
      sys.stdout.write(
          " Episode: ({}/{})".format(
              last_num_episodes, max_episodes_to_archive
          )
      )
      sys.stdout.write(
          " {}%|{}{}|  ".format(
              percentage,
              "#" * int(percentage / 10),
              " " * (10 - int(percentage / 10)),
          )
      )
  
      sys.stdout.flush()
  
file_path: coach/rl_coach/tests/utils/test_utils.py
imports: import glob
  import sys
  import time
  import os
  from os import path
  from rl_coach.tests.utils.definitions import Definitions
label_desc: Use image node_id 1 for calling a global function with example usage: print_progress(averaged_rewards, last_num_episodes, start_time, time_limit, p_valid_params) without return types