def body(x, _): summary.summary(x, name='x', mode='append') return x + 1, ()
def f(x): summary.summary(x, name='x') summary.summary(x, name='x') return x
def f(x): return summary.summary(x, name='x')
def f(x): summary.summary(x**2, name='y') return x
def f(x): summary.summary(x + 1., name='x', mode='append') summary.summary(x + 2., name='x', mode='append') return x