def subcommand(func=None, name=None, group=None, collector=None):
    def wrapper(func):
        collector.register(func, name=name)
        return func
    collector = COLLECTORS[group] if collector is None else collector
    if func is not None:
        return wrapper(func)
    return wrapper
Register function as a program's subcommand
dataset/ETHPy150Open aliles/begins/begin/subcommands.py/subcommand