code: def test_healthy_scheduler_status(self, session):
      last_scheduler_heartbeat_for_testing_1 = timezone.utcnow()
      job = Job(
          state=State.RUNNING,
          latest_heartbeat=last_scheduler_heartbeat_for_testing_1,
      )
      SchedulerJobRunner(job=job)
      session.add(job)
      session.commit()
      resp_json = self.client.get("/api/v1/health").json
      assert "healthy" == resp_json["metadatabase"]["status"]
      assert "healthy" == resp_json["scheduler"]["status"]
      assert (
          last_scheduler_heartbeat_for_testing_1.isoformat()
          == resp_json["scheduler"]["latest_scheduler_heartbeat"]
      )
  
file_path: airflow/tests/api_connexion/endpoints/test_health_endpoint.py
imports: from __future__ import annotations
  from datetime import timedelta
  from unittest import mock
  import pytest
  from airflow.jobs.job import Job
  from airflow.jobs.scheduler_job_runner import SchedulerJobRunner
  from airflow.utils import timezone
  from airflow.utils.session import create_session, provide_session
  from airflow.utils.state import State
label_desc: Use image node_id 1 for calling the TestGetHealth obj's underlying member method code with example usage: obj.test_healthy_scheduler_status(session) without return types