<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def register(self, cmd: Type[Command]) -> None: """Register a new IMAP command. Args: cmd: The new command type. """

        self.commands[cmd.command] = cmd