code: def get_subscriptions(self, jid, node=None):
          
  
          iq = aioxmpp.stanza.IQ(to=jid, type_=aioxmpp.structs.IQType.GET)
          iq.payload = pubsub_xso.Request(
              pubsub_xso.Subscriptions(node=node)
          )
  
          response = yield from self.client.send(iq)
          return response.payload
docs: Return all subscriptions of the local entity to a node.
  
          :param jid: Address of the PubSub service.
          :type jid: :class:`aioxmpp.JID`
          :param node: Name of the PubSub node to query.
          :type node: :class:`str`
          :raises aioxmpp.errors.XMPPError: as returned by the service
          :return: The subscriptions response from the service.
          :rtype: :class:`.xso.Subscriptions.
  
          If `node` is :data:`None`, subscriptions on all nodes of the entity
          `jid` are listed.