class_docstr: Adapted from OpenAI baselines.
  
  github.com/openai/baselines/blob/master/baselines/common/atari_wrappers.py
class_docstr_tok: ["Adapted","from","OpenAI","baselines",".","github.com\/openai\/baselines\/blob\/master\/baselines\/common\/atari_wrappers.py"]
docstr: Bin reward to {+1, 0, -1} by its sign.
docstr_tok: ["Bin","reward","to","{","+1",",","0",",","-1","}","by","its","sign","."]
code: def reward(self, reward):
      """Bin reward to {+1, 0, -1} by its sign."""
      return np.sign(reward)
  
file_path: flax/examples/ppo/env_utils.py
imports: import collections
  import gymnasium
  import numpy
  import seed_rl_atari_preprocessing
label_desc: Use image node_id 2 for calling the ClipRewardEnv obj's underlying member method code with example usage: obj.reward(reward) and returns: np