code: def test_get_airflow_health_triggerer_healthy_no_scheduler_job_record():
      latest_triggerer_job_mock = MagicMock()
      latest_triggerer_job_mock.latest_heartbeat = datetime.now()
      latest_triggerer_job_mock.is_alive = MagicMock(return_value=True)
      latest_dag_processor_job_mock = MagicMock()
      latest_dag_processor_job_mock.latest_heartbeat = datetime.now()
      latest_dag_processor_job_mock.is_alive = MagicMock(
          return_value=True
      )
  
      SchedulerJobRunner.most_recent_job = MagicMock(return_value=None)
      TriggererJobRunner.most_recent_job = MagicMock(
          return_value=latest_triggerer_job_mock
      )
      DagProcessorJobRunner.most_recent_job = MagicMock(
          return_value=latest_dag_processor_job_mock
      )
  
      health_status = get_airflow_health()
  
      expected_status = {
          "metadatabase": {"status": HEALTHY},
          "scheduler": {
              "status": UNHEALTHY,
              "latest_scheduler_heartbeat": None,
          },
          "triggerer": {
              "status": HEALTHY,
              "latest_triggerer_heartbeat": latest_triggerer_job_mock.latest_heartbeat.isoformat(),
          },
          "dag_processor": {
              "status": HEALTHY,
              "latest_dag_processor_heartbeat": latest_dag_processor_job_mock.latest_heartbeat.isoformat(),
          },
      }
  
      assert health_status == expected_status
  
imports: from __future__ import annotations
  from datetime import datetime
  from unittest.mock import MagicMock
  from airflow.api.common.airflow_health import HEALTHY, UNHEALTHY, DagProcessorJobRunner, SchedulerJobRunner, TriggererJobRunner, get_airflow_health
label_desc: Use image node_id 4 for calling a global function with example usage: test_get_airflow_health_triggerer_healthy_no_scheduler_job_record() without return types