def METHOD_NAME(block_id, expr):
    import sys
    from mako.template import Template
    try:
        Template(expr)
    except Exception as error:
        print(block_id, expr, type(error), error,
              '', sep='\n', file=sys.stderr)