'Create a new Message instance for the given type.
Args:
msgtype (str) :'

def create(self, msgtype, *args, **kwargs):

    if (msgtype not in self._messages):
        raise ProtocolError(('Unknown    message    type    %r    for    protocol    version    %s' % (msgtype, self._version)))
    return self._messages[msgtype].create(*args, **kwargs)
