<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def safe_eval(source, *args, **kwargs):
 """ eval without import """

    source = source.replace('import', '')  # import is not allowed
    return eval(source, *args, **kwargs)