code: def in_pathing_grid(self, pos: Union[Point2, Point3, Unit]) -> bool:
          
          assert isinstance(pos, (Point2, Point3, Unit))
          pos = pos.position.to2.rounded
          return self._game_info.pathing_grid[pos] == 0
docs: Returns True if a unit can pass through a grid point.