code: def can_feed(self, unit_type: UnitTypeId) -> bool:
          
          required = self._game_data.units[unit_type.value]._proto.food_required
          return required == 0 or self.supply_left >= required
docs: Checks if you have enough free supply to build the unit