@staticmethod
    def action_from_direction(d):
        return dict(
            left=0,
            down=1,
            right=2,
            up=3
        )[d]
Return the action corresponding to the given direction. This is a helper method for debugging and testing
dataset/ETHPy150Open rllab/rllab/rllab/envs/grid_world_env.py/GridWorldEnv.action_from_direction