code: def __init__(
      self,
      env,
      observation_space=None,
      action_space=None,
      reward_range=None,
      metadata=None,
  ):
      super().__init__(env)
      if observation_space is not None:
          # Only set the observation space if not None to test property forwarding
          self.observation_space = observation_space
      if action_space is not None:
          self.action_space = action_space
      if reward_range is not None:
          self.reward_range = reward_range
      if metadata is not None:
          self.metadata = metadata
  
imports: from typing import Optional
  import numpy
  import pytest
  from gym import core, spaces
  from gym.wrappers import OrderEnforcing, TimeLimit
label_desc: Use image node_id 1 to create a new NewPropertyWrapper object from inherited base classes: core with example: obj = NewPropertyWrapper(env, observation_space, action_space, reward_range, metadata)