<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def verify(expr, params=None):
 """ Determine if expression can be successfully translated to execute on MapD """

    try:
        compile(expr, params=params)
        return True
    except com.TranslationError:
        return False