def METHOD_NAME(label: Label) -> bool:
    """Check occluded attribute."""
    if label.attributes is not None:
        occluded = bool(label.attributes.get("occluded", False))
    else:
        occluded = False
    return occluded