def METHOD_NAME(
    staff_api_client, permission_manage_taxes
):
    # given
    default_rate_de, _ = TaxClassCountryRate.objects.get_or_create(
        country="DE", tax_class=None, rate=19
    )
    tax_class = TaxClass.objects.create(name="Tax Class")
    tax_class.country_rates.create(country="PL", rate=21)
    id = graphene.Node.to_global_id("TaxClass", tax_class.pk)
    new_rate_pl = 23
    variables = {
        "id": id,
        "input": {
            "updateCountryRates": [
                {"countryCode": "PL", "rate": new_rate_pl},
                {"countryCode": "DE"},
            ],
        },
    }
    # when
    response = staff_api_client.post_graphql(
        MUTATION, variables, permissions=[permission_manage_taxes]
    )
    # then
    content = get_graphql_content(response)
    data = content["data"]["taxClassUpdate"]
    assert not data["errors"]
    assert len(data["taxClass"]["countries"]) == 1
    assert data["taxClass"]["countries"][0]["country"]["code"] == "PL"
    default_rate_de.refresh_from_db()
    assert default_rate_de.pk is not None