def _in_range(self, uid):
    """Returns whether candidate UID is within the configured range."""
    start = self.start
    end = float("inf") if self.end is None else self.end
    return start <= uid < end
Returns whether candidate UID is within the configured range.
language/fruit/rendering_utils.py