code: def cmd_func(self, command: str) -> Optional[Callable]:
          
          func_name = self.cmd_func_name(command)
          if func_name:
              return getattr(self, func_name)
docs: Get the function for a command
          :param command: the name of the command