code: def is_iq_handler(type_, payload_cls, coro, *, with_send_reply=False):
      
  
      try:
          handlers = get_magic_attr(coro)
      except AttributeError:
          return False
  
      hs = HandlerSpec(
          (_apply_iq_handler, (type_, payload_cls)),
      )
  
      try:
          return handlers[hs] == dict(with_send_reply=with_send_reply)
      except KeyError:
          return False
docs: Return true if `coro` has been decorated with :func:`iq_handler` for the
      given `type_` and `payload_cls` and the specified keyword arguments.