def make_call(method, *_params):
    global id_val
    global req_id

    params = list(_params)
    params.insert(0, req_id)

    payload = {
        'method': method,
        'params': params,
        'jsonrpc': '2.0',
        'id': id_val,
    }

    response = requests.post(url, data=json.dumps(payload), headers=headers).json()

    id_val += 1

    if response in 'result':
        return response['result']
    else:
        raise RuntimeError(response['error'])

# stackhut fields
dataset/ETHPy150Open StackHut/stackhut/stackhut_toolkit/res/shims/python/stackhut.py/make_call/swapped operands of `in`