code: def test_unhealthy_metadatabase_status(self, most_recent_job_mock):
      most_recent_job_mock.side_effect = Exception
      resp_json = self.client.get("/api/v1/health").json
      assert "unhealthy" == resp_json["metadatabase"]["status"]
      assert (
          resp_json["scheduler"]["latest_scheduler_heartbeat"] is None
      )
  
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 4 for calling the TestGetHealth obj's underlying member method code with example usage: obj.test_unhealthy_metadatabase_status(most_recent_job_mock) without return types