code: def register(xmlstream,
               query_xso,
               timeout=60,
               ):
      
      iq = aioxmpp.IQ(
          to=aioxmpp.JID.fromstr(xmlstream._to),
          type_=aioxmpp.IQType.SET,
          payload=query_xso
      )
      iq.autoset_id()
  
      yield from aioxmpp.protocol.send_and_wait_for(xmlstream,
                                                    [iq],
                                                    [aioxmpp.IQ],
                                                    timeout=timeout)
docs: Create a new account on the server.
  
      :param query_xso: XSO with the information needed for the registration.
      :type query_xso: :class:`~aioxmpp.ibr.Query`
  
      :param xmlstream: Specifies the stream connected to the server where
                        the account will be created.
      :type xmlstream: :class:`aioxmpp.protocol.XMLStream`
  
      :param timeout: Maximum time in seconds to wait for an IQ response, or
                      :data:`None` to disable the timeout.
      :type timeout: :class:`~numbers.Real` or :data:`None`