def METHOD_NAME(
    ocm_api: OCMBaseClient, filter: Filter
) -> Generator[OCMSubscriptionLabel, None, None]:
    """
    Finds all subscription labels that match the given filter.
    """
    for subscription_label in get_labels(
        ocm_api=ocm_api, filter=filter & subscription_label_filter()
    ):
        if isinstance(subscription_label, OCMSubscriptionLabel):
            yield subscription_label