code: def supports_commands(self, peer_jid):
          
  
          disco = self.dependencies[aioxmpp.disco.DiscoClient]
          response = yield from disco.query_info(
              peer_jid,
          )
  
          return namespaces.xep0050_commands in response.features
docs: Detect whether a peer supports :xep:`50` Ad-Hoc commands.
  
          :param peer_jid: JID of the peer to query
          :type peer_jid: :class:`aioxmpp.JID`
          :rtype: :class:`bool`
          :return: True if the peer supports the Ad-Hoc commands protocol, false
                   otherwise.
  
          Note that the fact that a peer supports the protocol does not imply
          that it offers any commands.