code: def test_should_pass_message_to_client(
      mock_client, mock_get_creds_and_project_id
  ):
      mock_get_creds_and_project_id.return_value = (
          "creds",
          "project_id",
      )
  
      transport_type = mock.MagicMock()
      stackdriver_task_handler = StackdriverTaskHandler(
          transport=transport_type, labels={"key": "value"}
      )
      logger = logging.getLogger("logger")
      logger.addHandler(stackdriver_task_handler)
  
      logger.info("test-message")
      stackdriver_task_handler.flush()
  
      transport_type.assert_called_once_with(
          mock_client.return_value, "airflow"
      )
      transport_type.return_value.send.assert_called_once_with(
          mock.ANY,
          "test-message",
          labels={"key": "value"},
          resource=Resource(type="global", labels={}),
      )
      mock_client.assert_called_once_with(
          credentials="creds",
          client_info=mock.ANY,
          project="project_id",
      )
  
imports: from __future__ import annotations
  import logging
  from unittest import mock
  from urllib.parse import parse_qs, urlsplit
  import pytest
  from google.cloud.logging import Resource
  from google.cloud.logging_v2.types import ListLogEntriesRequest, ListLogEntriesResponse, LogEntry
  from airflow.providers.google.cloud.log.stackdriver_task_handler import StackdriverTaskHandler
  from airflow.utils import timezone
  from airflow.utils.state import TaskInstanceState
  from tests.test_utils.db import clear_db_dags, clear_db_runs
label_desc: Use image node_id 3 for calling a global function with example usage: test_should_pass_message_to_client(mock_client, mock_get_creds_and_project_id) without return types