

def validate(script_dict):
    (code, err_str) = compile_script(code['script_hash'], script_dict['text'], script_dict['title'])
    if err_str:
        raise DataError(err_str)
    return code

dataset/ETHPy150Open genzgd/Lampost-Mud/lampost/editor/scripts.py validate/VarMisuse@18/24 `script_dict`->`code`