code: def create_env(game: str, clip_rewards: bool):
      """Create a FrameStack object that serves as environment for the `game`."""
      env = gym.make(game)
      if clip_rewards:
          env = ClipRewardEnv(env)  # bin rewards to {-1., 0., 1.}
      preproc = seed_rl_atari_preprocessing.AtariPreprocessing(env)
      stack = FrameStack(preproc, num_frames=4)
      return stack
  
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 1 for calling a global function with example usage: create_env(game, clip_rewards) and returns: stack