class_docstr: Encode the agent's position & direction in a one-hot vector
code: def observation(self, obs):
      retval = np.zeros(
          (self.env.width * self.env.height * NUM_DIRECTIONS,),
          dtype=np.float32,
      )
      retval[
          self.env.agent_pos[0] * self.env.height * NUM_DIRECTIONS
          + self.env.agent_pos[1] * NUM_DIRECTIONS
          + self.env.agent_dir
      ] = 1.0
      return retval
  
file_path: ReAgent/reagent/gym/envs/wrappers/simple_minigrid.py
imports: import gym
  import gym_minigrid
  import numpy
  from gym import spaces
  from gym_minigrid.minigrid import DIR_TO_VEC
label_desc: Use image node_id 2 for calling the SimpleObsWrapper obj's underlying member method code with example usage: obj.observation(obs) and returns: retval