def METHOD_NAME(origin, *args, **kwargs):
    try:
        click_echo_origin[origin](*args, **kwargs)
    except IOError:
        (sys.stderr.write if kwargs.get("err") else sys.stdout.write)(
            "%s\n" % (args[0] if args else "")
        )