def _safe_repr(x, memo=None):
    return (x._repr(memo=memo) if isinstance(x, (ir.Expr, Node)) else repr(x))
def _safe_repr(x, memo=None):
    return (x._repr(memo=memo) if isinstance(x, (ir.Expr, Node)) else repr(x))