code: def test_should_use_credentials(
      self, mock_client, mock_get_creds_and_project_id
  ):
      mock_get_creds_and_project_id.return_value = (
          "creds",
          "project_id",
      )
  
      stackdriver_task_handler = StackdriverTaskHandler(
          gcp_key_path="KEY_PATH"
      )
      client = stackdriver_task_handler._client
  
      mock_get_creds_and_project_id.assert_called_once_with(
          disable_logging=True,
          key_path="KEY_PATH",
          scopes=frozenset(
              {
                  "https://www.googleapis.com/auth/logging.write",
                  "https://www.googleapis.com/auth/logging.read",
              }
          ),
      )
      mock_client.assert_called_once_with(
          credentials="creds",
          client_info=mock.ANY,
          project="project_id",
      )
      assert mock_client.return_value == client
  
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 11 for calling the TestStackdriverLoggingHandlerTask obj's underlying member method code with example usage: obj.test_should_use_credentials(mock_client, mock_get_creds_and_project_id) without return types