def METHOD_NAME(name: str) -> Condition[TCallDetails]:
    """Returns a filter function that return True if
    request's gRPC service name matches name.
    Args:
        name (str): service name to match
    Returns:
        A filter function that returns True if request's gRPC service
        name matches name
    """
    def filter_fn(metadata):
        service, _ = _split_full_method(metadata)
        return service == name
    return filter_fn