code: def _units_in_area(self, rect):
      
      player_id = self._obs.observation.player_common.player_id
      return [u for u, p in self._visible_units()
              if rect.intersects_circle(p, u.radius) and u.owner == player_id]
docs: Return the list of units that intersect the rect.