code: def print_progress(
      averaged_rewards,
      last_num_episodes,
      preset_validation_params,
      start_time,
      time_limit,
  ):
      percentage = int(
          (100 * last_num_episodes)
          / preset_validation_params.max_episodes_to_achieve_reward
      )
      sys.stdout.write(
          "\rReward: ({}/{})".format(
              round(averaged_rewards[-1], 1),
              preset_validation_params.min_reward_threshold,
          )
      )
      sys.stdout.write(
          " Time (sec): ({}/{})".format(
              round(time.time() - start_time, 2), time_limit
          )
      )
      sys.stdout.write(
          " Episode: ({}/{})".format(
              last_num_episodes,
              preset_validation_params.max_episodes_to_achieve_reward,
          )
      )
      sys.stdout.write(
          " {}%|{}{}|  ".format(
              percentage,
              "#" * int(percentage / 10),
              " " * (10 - int(percentage / 10)),
          )
      )
      sys.stdout.flush()
  
imports: import argparse
  import glob
  import os
  import shutil
  import signal
  import subprocess
  import sys
  from importlib import import_module
  from os import path
  import numpy
  import pandas
  import time
  import pytest
  from rl_coach.logger import screen
label_desc: Use image node_id 2 for calling a global function with example usage: print_progress(averaged_rewards, last_num_episodes, preset_validation_params, start_time, time_limit) without return types