def decrypt(api_key, scoped_key):
    if len(api_key) == 64:
        json_string = decode_aes256(api_key, scoped_key)
    else:
        json_string = old_decode_aes(api_key, scoped_key)
    try:
        return json.loads(json_string)
    except __HOLE__:
        return json.loads(json_string.decode())
dataset/ETHPy150Open keenlabs/KeenClient-Python/keen/scoped_keys.py/decrypt