code: def callback(lcl, _glb):
      # stop training if reward exceeds 199
      is_solved = (
          lcl["t"] > 100
          and sum(lcl["episode_rewards"][-101:-1]) / 100 >= 199
      )
      return is_solved
  
imports: import gym
  from baselines import deepq
label_desc: Use image node_id 1 for calling a global function with example usage: callback(lcl, _glb) and returns: is_solved