code: def _is_disabled() -> bool:
      return (
          conf.getboolean("openlineage", "disabled", fallback=False)
          or os.getenv("OPENLINEAGE_DISABLED", "false").lower()
          == "true"
          or (
              conf.get("openlineage", "transport", fallback="") == ""
              and conf.get("openlineage", "config_path", fallback="")
              == ""
              and os.getenv("OPENLINEAGE_URL", "") == ""
              and os.getenv("OPENLINEAGE_CONFIG", "") == ""
          )
      )
  
file_path: airflow/airflow/providers/openlineage/plugins/openlineage.py
imports: from __future__ import annotations
  import os
  from airflow.configuration import conf
  from airflow.plugins_manager import AirflowPlugin
  from airflow.providers.openlineage.plugins.listener import get_openlineage_listener
  from airflow.providers.openlineage.plugins.macros import lineage_parent_id, lineage_run_id
label_desc: Use image node_id 1 for calling a global function with example usage: _is_disabled() and returns: unknown