class_docstr: This class creates a maze problem given a map.
class_docstr_tok: ["This","class","creates","a","maze","problem","given","a","map","."]
code: def _encode_state(self, state):
      return int(state[1] * self.room_lengths[0] + state[0])
  
file_path: CNTK/Examples/ReinforcementLearning/deeprl/env/maze2d.py
imports: import gym
  import numpy
  from gym import spaces
  from gym.utils import seeding
label_desc: Use image node_id 7 for calling the Maze2D obj's underlying member method code with example usage: obj._encode_state(state) and returns: int