code: def mocked_get_connection():
      with mock.patch(
          "airflow.providers.common.sql.operators.sql.BaseHook.get_connection"
      ) as m:
          yield m
  
imports: from __future__ import annotations
  from unittest import mock
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: mocked_get_connection() without return types