def METHOD_NAME():
    def get_headers(pipeline_request):
        assert len(pipeline_request.http_request.headers) == 2
        assert pipeline_request.http_request.headers["content-type"] == "my/json"
        assert pipeline_request.http_request.headers["accept"] == "application/json"
        raise ValueError("Passed!")
    client = get_client(callback=get_headers)
    with pytest.raises(ValueError) as ex:
        client.basic.put_valid(None, headers={"content-type": "shouldn't/be-me"}, content_type="my/json")
    assert str(ex.value) == "Passed!"