def eval_expr(code, local_dict, global_dict):
    """
    Evaluate Python code generated by ``stringify_expr``.

    Generally, ``parse_expr`` should be used.

    """
    expr = eval(code, global_dict, local_dict)
    return expr
