code: def __init__(self, env_name, params):
      class ActionSpace(object):
          def __init__(
              self,
              action_space=None,
              low=None,
              high=None,
              shape=None,
              n=None,
          ):
              self.action_space = action_space
              self.low = low
              self.high = high
              self.shape = shape
              self.n = n
  
          def sample(self):
              return self.action_space.sample()
  
      self.env = gym.make(env_name, params=params)
      self.env = ActionMappingWrapper(self.env)
      self._max_episode_steps = int(params["max_time_episode"])
      self.action_space = ActionSpace(
          self.env.action_space,
          self.env.action_space.low,
          self.env.action_space.high,
          self.env.action_space.shape,
      )
  
imports: import parl
  import carla
  import gym
  import gym_carla
  import numpy
  from parl.env import ActionMappingWrapper
label_desc: Use image node_id 1 to create a new CarlaRemoteEnv object from inherited base classes: object with example: obj = CarlaRemoteEnv(env_name, params)