<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def command(name=None):
 """A decorator to register a subcommand with the global `Subcommands` instance. """

    def decorator(f):
        _commands.append((name, f))
        return f
    return decorator