class_docstr: NaN and inf checking wrapper for vectorized environment, will raise a warning by default,
  allowing you to know from what the NaN of inf originated from.
  
  :param venv: (VecEnv) the vectorized environment to wrap
  :param raise_exception: (bool) Whether or not to raise a ValueError, instead of a UserWarning
  :param warn_once: (bool) Whether or not to only warn once.
  :param check_inf: (bool) Whether or not to check for +inf or -inf as well
code: def __init__(
      self, venv, raise_exception=False, warn_once=True, check_inf=True
  ):
      VecEnvWrapper.__init__(self, venv)
      self.raise_exception = raise_exception
      self.warn_once = warn_once
      self.check_inf = check_inf
      self._actions = None
      self._observations = None
      self._user_warned = False
  
file_path: stable-baselines/stable_baselines/common/vec_env/vec_check_nan.py
imports: import warnings
  import numpy
  from stable_baselines.common.vec_env.base_vec_env import VecEnvWrapper
label_desc: Use image node_id 1 to create a new VecCheckNan object from inherited base classes: VecEnvWrapper with example: obj = VecCheckNan(venv, raise_exception, warn_once, check_inf)