def METHOD_NAME(fn: Callable[[BaseSegment], bool]) -> Callable[[BaseSegment], bool]:
    """Returns a function that computes: not fn()."""
    def _(segment: BaseSegment) -> bool:
        return not fn(segment)
    return _