code: def get_registration_fields(xmlstream,
                              timeout=60,
                              ):
      
  
      iq = aioxmpp.IQ(
          to=aioxmpp.JID.fromstr(xmlstream._to),
          type_=aioxmpp.IQType.GET,
          payload=xso.Query()
      )
      iq.autoset_id()
  
      reply = yield from aioxmpp.protocol.send_and_wait_for(xmlstream,
                                                            [iq],
                                                            [aioxmpp.IQ],
                                                            timeout=timeout)
      return reply.payload
docs: A query is sent to the server to obtain the fields that need to be
      filled to register with the server.
  
      :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`
  
      :return: :attr:`list`