@app.route("/length/<int:response_bytes>")
def fix_length_response(response_bytes):
    if response_bytes < 1:
        raise Exception("Forbidded response length: {0}".format(response_bytes))
    try:
        response = response_cache[response_bytes]
        return response
    except __HOLE__:
        response = urandom(response_bytes)
        response_cache[response_bytes] = response
        return response
dataset/ETHPy150Open svanoort/python-client-benchmarks/app.py/fix_length_response