def METHOD_NAME(*raws: str) -> Callable[[BaseSegment], bool]:
    """Returns a function that determines if segment matches one of the raw inputs."""
    def _(segment: BaseSegment) -> bool:
        return segment.raw_upper in raws
    return _