code: def hook():
      client = AzureSynapsePipelineHook(
          azure_synapse_conn_id=DEFAULT_CONNECTION_DEFAULT_CREDENTIAL,
          azure_synapse_workspace_dev_endpoint=AZURE_SYNAPSE_WORKSPACE_DEV_ENDPOINT,
      )
      client._conn = MagicMock(spec=["pipeline_run", "pipeline"])
  
      return client
  
file_path: airflow/tests/providers/microsoft/azure/hooks/test_synapse_pipeline.py
imports: from __future__ import annotations
  from unittest.mock import MagicMock, patch
  import pytest
  from azure.identity import ClientSecretCredential, DefaultAzureCredential
  from azure.synapse.artifacts import ArtifactsClient
  from airflow.models.connection import Connection
  from airflow.providers.microsoft.azure.hooks.synapse import AzureSynapsePipelineHook, AzureSynapsePipelineRunException, AzureSynapsePipelineRunStatus
label_desc: Use image node_id 2 for calling a global function with example usage: hook() and returns: client