code: def create_reward_encoder():
          
          last_reward = tf.Variable(0, name="last_reward", trainable=False, dtype=tf.float32)
          new_reward = tf.placeholder(shape=[], dtype=tf.float32, name='new_reward')
          update_reward = tf.assign(last_reward, new_reward)
          return last_reward, new_reward, update_reward
docs: Creates TF ops to track and increment recent average cumulative reward.