class_docstr: Manage listener registration and provides hook property for calling them.
class_docstr_tok: ["Manage","listener","registration","and","provides","hook","property","for","calling","them","."]
code: def has_listeners(self) -> bool:
      return bool(self.pm.get_plugins())
  
file_path: airflow/airflow/listeners/listener.py
imports: from __future__ import annotations
  import logging
  from typing import TYPE_CHECKING
  import pluggy
  from airflow.plugins_manager import integrate_listener_plugins
label_desc: Use image node_id 2 for calling the ListenerManager obj's underlying member method code with example usage: obj.has_listeners() and returns: bool