def print_demo(p, fun):
    out = fun(p)
    print('-----')
    print(('fun: %s' % fun.__name__))
    print('p:')
    print(p)
    print('out[0]:')
    print(out[0])
    print('out[1]:')
    print(out[1])
    print('out[0].sum(), out[1].sum()')
    print(out[0].sum(), out[1].sum())
def print_demo(p, fun):
    out = fun(p)
    print('-----')
    print(('fun: %s' % fun.__name__))
    print('p:')
    print(p)
    print('out[0]:')
    print(out[0])
    print('out[1]:')
    print(out[1])
    print('out[0].sum(), out[1].sum()')
    print(out[0].sum(), out[1].sum())