class_docstr: Custom Environment that raised NaNs and Infs
class_docstr_tok: ["Custom","Environment","that","raised","NaNs","and","Infs"]
code: def __init__(self):
      super(NanAndInfEnv, self).__init__()
      self.action_space = spaces.Box(
          low=-np.inf, high=np.inf, shape=(1,), dtype=np.float64
      )
      self.observation_space = spaces.Box(
          low=-np.inf, high=np.inf, shape=(1,), dtype=np.float64
      )
  
file_path: stable-baselines/tests/test_vec_check_nan.py
imports: import gym
  from gym import spaces
  import numpy
  from stable_baselines.common.vec_env import DummyVecEnv, VecCheckNan
label_desc: Use image node_id 1 to create a new NanAndInfEnv object from inherited base classes: gym with example: obj = NanAndInfEnv()