code: def __init__(self, env=None, continuous_actions=False):
      gym.Wrapper.__init__(self, env)
      self.continuous_actions = continuous_actions
      self.observation_space = list(self.observation_spaces.values())
      self.action_space = list(self.action_spaces.values())
      assert len(self.observation_space) == len(self.action_space)
      self.n = len(self.observation_space)
      self.agents_name = list(self.observation_spaces.keys())
      self.obs_shape_n = [
          self.get_shape(self.observation_space[i])
          for i in range(self.n)
      ]
      self.act_shape_n = [
          self.get_shape(self.action_space[i]) for i in range(self.n)
      ]
  
file_path: PARL/parl/env/multiagent_env.py
imports: import numpy
label_desc: Use image node_id 1 to create a new mpe_wrapper_for_pettingzoo object from inherited base classes: gym with example: obj = mpe_wrapper_for_pettingzoo(env, continuous_actions)