design pattern quick reference command command py class commanddef __init__(selfreceivertext)self receiver receiver self text text def execute(self)self receiver print_message(self textclass receiver(object)def print_message(selftext)print("message received{}format(text)class invoker(object)def __init__(self)self commands [def add_command(selfcommand)self commands append(commanddef run(self)for command in self commandscommand execute(if __name__ ="__main__"receiver receiver(command command(receiver"execute command "command command(receiver"execute command "invoker invoker(invoker add_command(command invoker add_command(command invoker run(