code: def test_run_spark_job(hook: AzureSynapseHook):
      hook.run_spark_job({})  # type: ignore
  
      if hook._conn is not None and isinstance(hook._conn, SparkClient):
          hook._conn.spark_batch.create_spark_batch_job.assert_called_with(
              {}
          )
  
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 5 for calling a global function with example usage: test_run_spark_job(hook) without return types