def METHOD_NAME(
    items: Iterable[SendStreamItem],
    discard_fn: Callable[[bytes, bytes], bool],
) -> Iterable[SendStreamItem]:
    """
    SELinux always sets a security context on filesystem objects, but most
    images will not ship data with non-default contexts, so it is easiest to
    just filter out these `set_xattr`s
    """
    for item in items:
        if isinstance(item, SendStreamItems.set_xattr):
            if item.name == _SELINUX_XATTR and discard_fn(item.path, item.data):
                continue
        yield item