code: def unregister_presence_callback(self, type_, from_):
          
          type_ = self._coerce_enum(type_, structs.PresenceType)
          warnings.warn(
              "unregister_presence_callback is deprecated; use "
              "aioxmpp.dispatcher.SimplePresenceDispatcher or "
              "aioxmpp.PresenceClient instead",
              DeprecationWarning,
              stacklevel=2
          )
          self._xxx_presence_dispatcher.unregister_callback(
              type_,
              from_,
          )
docs: Unregister a callback previously registered with
          :meth:`register_presence_callback`.
  
          :param type_: Presence type to listen for.
          :type type_: :class:`~.PresenceType`
          :param from_: Sender JID to listen for, or :data:`None` for a wildcard
                        match.
          :type from_: :class:`~aioxmpp.JID` or :data:`None`.
          :raises KeyError: if no callback is currently registered for the given
                            ``(type_, from_)`` pair
          :raises ValueError: if `type_` is not a valid
                              :class:`~.PresenceType` (and cannot be cast
                              to a :class:`~.PresenceType`)
  
          The match is made on the exact pair; it is not possible to unregister
          arbitrary listeners by passing :data:`None` to the `from_` arguments
          (i.e. the wildcarding only applies for receiving stanzas, not for
          unregistering callbacks; unregistering a wildcard match with `from_`
          set to :data:`None` is of course possible).
  
          .. versionchanged:: 0.7
  
             The `type_` argument is now supposed to be a
             :class:`~.PresenceType` member.
  
          .. deprecated:: 0.7
  
             Passing a :class:`str` as `type_` argument is deprecated and will
             raise a :class:`TypeError` as of the 1.0 release. See the Changelog
             for :ref:`api-changelog-0.7` for further details on how to upgrade
             your code efficiently.
  
          .. deprecated:: 0.9
  
             This method has been deprecated. It is recommended to use
             :class:`aioxmpp.PresenceClient` instead.