human
Complete this python program:
def command(regex):
assistant
#Here is the Python program you requested.

    """Decorator to register an mps-youtube command.
    """
    def decorator(function):
        cmd = Command(re.compile(regex), None, None, function)
        g.commands.append(cmd)
        return function
    return decorator