code: def _wall_between(self, pos1, pos2):
      if pos1 == pos2:
          return False
      assert pos1.x == pos2.x or pos1.y == pos2.y
      if pos1.y == pos2.y:
          for i in range(min(pos1.x, pos2.x) + 1, max(pos1.x, pos2.x)):
              if self.maze[i, pos1.y] == Element.WALL:
                  return True
      elif pos1.x == pos2.x:
          for i in range(min(pos1.y, pos2.y), max(pos1.y, pos2.y)):
              if self.maze[pos1.x, i] == Element.WALL:
                  return True
      return False
  
imports: import logging
  from typing import NamedTuple
  import numpy
  from gym import Env
  from gym.spaces import Box, Discrete
label_desc: Use image node_id 12 for calling the PocManEnv obj's underlying member method code with example usage: obj._wall_between(pos1, pos2) and returns: False, False, True, True