docstr: Helper for normalizing the observation.
docstr_tok: ["Helper","for","normalizing","the","observation","."]
code: def _normalize_obs(
      obs: np.ndarray, env: Optional[VecNormalize] = None
  ) -> np.ndarray:
      """
      Helper for normalizing the observation.
      """
      if env is not None:
          return env.normalize_obs(obs)
      return obs
  
imports: import random
  from typing import Optional, List, Union
  import numpy
  from stable_baselines.common.segment_tree import SumSegmentTree, MinSegmentTree
  from stable_baselines.common.vec_env import VecNormalize
label_desc: Use image node_id 9 for calling the ReplayBuffer obj's underlying member method code with example usage: obj._normalize_obs(obs, env) and returns: obs, env