code: def __init__(self, env, map_func):
      gym.ObservationWrapper.__init__(self, env)
      self._func = map_func
  
imports: import gym
  import numpy
  from collections import deque
  from gym import spaces
label_desc: Use image node_id 1 to create a new MapState object from inherited base classes: gym with example: obj = MapState(env, map_func)