def validate_rpc_recieved(content):
    """
    Validates that this is a valid rpc message for our purposes
    """
    required = {'result':None, 'id':None, 'error':None}
    for key, value in required.items():
        if content not in key:
            return False
        if value and content[key] != value:
            return False
    
    return True
dataset/ETHPy150Open c00w/bitHopper/bitHopper/util.py/validate_rpc_recieved/swapped operands of `not in`