docstr: clips the reward to {+1, 0, -1} by its sign.
  
  :param env: (Gym Environment) the environment
docstr_tok: ["clips","the","reward","to","{","+1",",","0",",","-1","}","by","its","sign",".",":","param","env",":","(","Gym","Environment",")","the","environment"]
code: def __init__(self, env):
      """
      clips the reward to {+1, 0, -1} by its sign.
  
      :param env: (Gym Environment) the environment
      """
      gym.RewardWrapper.__init__(self, env)
  
imports: from collections import deque
  import numpy
  import gym
  from gym import spaces
  import cv2
label_desc: Use image node_id 1 to create a new ClipRewardEnv object from inherited base classes: gym with example: obj = ClipRewardEnv(env)