def json_numpy_obj_hook(dct):
    if isinstance(dct, dict) and '__ndarray__' in dct:
        return np.array(dct['__ndarray__'])

    return dct
dataset/ETHPy150Open SMART-Lab/smartlearner/smartlearner/utils.py/json_numpy_obj_hook/original