code: def test_get_connection_by_credential_client_secret(mock_credential):
      hook = AzureSynapseHook(DEFAULT_CONNECTION_CLIENT_SECRET)
  
      with patch.object(hook, "_create_client") as mock_create_client:
          mock_create_client.return_value = MagicMock()
  
          connection = hook.get_conn()
          assert connection is not None
          mock_create_client.assert_called_with(
              mock_credential(),
              "https://testsynapse.dev.azuresynapse.net",
              "",
              "2022-02-22-preview",
              "subscriptionId",
          )
  
file_path: airflow/tests/providers/microsoft/azure/hooks/test_synapse.py
imports: from __future__ import annotations
  from unittest.mock import MagicMock, patch
  import pytest
  from azure.synapse.spark import SparkClient
  from airflow.models.connection import Connection
  from airflow.providers.microsoft.azure.hooks.synapse import AzureSynapseHook, AzureSynapseSparkBatchRunStatus
label_desc: Use image node_id 3 for calling a global function with example usage: test_get_connection_by_credential_client_secret(mock_credential) without return types