def METHOD_NAME(
    ocm_api: OCMBaseClient, filter: Filter
) -> Generator[OCMLabel, None, None]:
    """
    Finds all labels that match the given filter.
    """
    for label_dict in ocm_api.get_paginated(
        api_path="/api/accounts_mgmt/v1/labels",
        params={"search": filter.render()},
    ):
        yield build_label_from_dict(label_dict)