code: def env_creator(config):
      env = pistonball_v6.env(n_pistons=5)
      env = dtype_v0(env, dtype=float32)
      # This gives us greyscale images for the color red
      env = color_reduction_v0(env, mode="R")
      env = normalize_obs_v0(env)
      # This gives us images that are upsampled to the number of pixels in the
      # default CNN filter
      env = resize_v1(
          env,
          x_size=TRANSFORMED_OBS_SPACE[0],
          y_size=TRANSFORMED_OBS_SPACE[1],
      )
      # This gives us 3D images for which we have default filters
      env = reshape_v0(env, shape=TRANSFORMED_OBS_SPACE)
      return env
  
file_path: ray/rllib/examples/env/greyscale_env.py
imports: from numpy import float32
  import argparse
  from pettingzoo.butterfly import pistonball_v6
  from supersuit import normalize_obs_v0, dtype_v0, color_reduction_v0, reshape_v0, resize_v1
  from ray.rllib.algorithms.ppo import PPOConfig
  from ray.rllib.env import PettingZooEnv
  from ray.tune.registry import register_env
  from ray import tune
  from ray import air
label_desc: Use image node_id 1 for calling a global function with example usage: env_creator(config) and returns: env