def METHOD_NAME(self, name, callback, description, completions=None):
    self.mpstate.command_map[name] = (callback, description)
    if completions is not None:
        self.mpstate.completions[name] = completions