code: def request(cls, name, *args, **kwargs):
          
          mid = kwargs.pop('mid', None)
          if len(kwargs) > 0:
              raise TypeError('Invalid keyword argument(s): %r' % kwargs)
          return cls(cls.REQUEST, name, args, mid)
docs: Helper method for creating request messages.
  
          Parameters
          ----------
          name : str
              The name of the message.
          args : list of strings
              The message arguments.
  
          Keyword arguments
          -----------------
          mid : str or None
              Message ID to use or None (default) for no Message ID