def METHOD_NAME(*seg_type: str) -> Callable[[BaseSegment], bool]:
    """Returns a function that determines if segment is one of the types."""
    def _(segment: BaseSegment) -> bool:
        return segment.METHOD_NAME(*seg_type)
    return _