code: def in_placement_grid(self, pos: Union[Point2, Point3, Unit]) -> bool:
          
          assert isinstance(pos, (Point2, Point3, Unit))
          pos = pos.position.to2.rounded
          return self._game_info.placement_grid[pos] != 0
docs: Returns True if you can place something at a position. Remember, buildings usually use 2x2, 3x3 or 5x5 of these grid points.
          Caution: some x and y offset might be required, see ramp code:
          https://github.com/Dentosal/python-sc2/blob/master/sc2/game_info.py#L17-L18