async def METHOD_NAME():
    def get_headers(pipeline_request):
        assert len(pipeline_request.http_request.headers) == 1
        assert pipeline_request.http_request.headers["Accept"] == "my/content-type"
        raise ValueError("Passed!")
    client = get_client(callback=get_headers)
    with pytest.raises(ValueError) as ex:
        await client.basic.get_empty(headers={"Accept": "my/content-type"})
    assert str(ex.value) == "Passed!"
    await client.close()