def METHOD_NAME(payment, response):
    """Cancel a refund of a payment."""
    response.delete(f"https://api.mollie.com/v2/payments/{PAYMENT_ID}/refunds/{REFUND_ID}", "empty")
    canceled_refund = payment.refunds.delete(REFUND_ID)
    assert canceled_refund == {}