def convert_trunc(trunc):
parent_fn_name = trunc.parent_function.name_short<EOL>prefix_list = {"<STR_LIT:p>": "<STR_LIT>", "<STR_LIT:r>": "<STR_LIT>", "<STR_LIT:g>": "<STR_LIT>"}<EOL>prefix = prefix_list[parent_fn_name]<EOL>new_var_arg = f'<STR_LIT>'<EOL>new_var = bel.lang.ast.Function("<STR_LIT>", bo.spec)<EOL>new_var.add_argument(StrArg(new_var_arg, new_var))<EOL>return new_var<EOL>
Convert BEL1 trunc() to BEL2 var()