code: def test_gauge_executor_metrics(
      mock_stats_gauge, mock_trigger_tasks, mock_sync
  ):
      executor = BaseExecutor()
      executor.heartbeat()
      calls = [
          mock.call(
              "executor.open_slots",
              value=mock.ANY,
              tags={"status": "open", "name": "BaseExecutor"},
          ),
          mock.call(
              "executor.queued_tasks",
              value=mock.ANY,
              tags={"status": "queued", "name": "BaseExecutor"},
          ),
          mock.call(
              "executor.running_tasks",
              value=mock.ANY,
              tags={"status": "running", "name": "BaseExecutor"},
          ),
      ]
      mock_stats_gauge.assert_has_calls(calls)
  
imports: from __future__ import annotations
  import logging
  import sys
  from datetime import timedelta
  from unittest import mock
  import pendulum
  import pytest
  import time_machine
  from airflow.callbacks.callback_requests import CallbackRequest
  from airflow.cli.cli_config import DefaultHelpParser, GroupCommand
  from airflow.cli.cli_parser import AirflowHelpFormatter
  from airflow.executors.base_executor import BaseExecutor, RunningRetryAttemptType
  from airflow.models.baseoperator import BaseOperator
  from airflow.models.taskinstance import TaskInstance, TaskInstanceKey
  from airflow.utils import timezone
  from airflow.utils.state import State
label_desc: Use image node_id 12 for calling a global function with example usage: test_gauge_executor_metrics(mock_stats_gauge, mock_trigger_tasks, mock_sync) without return types