code: def beta_adder(init_beta, step_size=0.0001):
      beta = init_beta
      step_size = step_size
  
      def adder():
          nonlocal beta, step_size
          beta += step_size
          return min(beta, 1)
  
      return adder
  
imports: from parl.utils import check_version_for_fluid
  import argparse
  import os
  import pickle
  from collections import deque
  from datetime import datetime
  import gym
  import numpy
  import paddle.fluid
  from tqdm import tqdm
  import parl
  from atari_agent import AtariAgent
  from atari_model import AtariModel
  from parl.utils import logger, summary
  from per_alg import PrioritizedDoubleDQN, PrioritizedDQN
  from proportional_per import ProportionalPER
  from utils import get_player
label_desc: Use image node_id 1 for calling a global function with example usage: beta_adder(init_beta, step_size) and returns: adder, min