code: def mock_get_conn():
      commit_mock = mock.MagicMock()
      cursor_mock = mock.MagicMock(
          execute=[],
          fetchall=[["1", "2", "3"]],
          description=["a", "b", "c"],
          iterate=[["1", "2", "3"]],
      )
      conn_mock = mock.MagicMock(
          commit=commit_mock,
          cursor=cursor_mock,
      )
      return conn_mock
  
file_path: airflow/tests/providers/mysql/transfers/test_vertica_to_mysql.py
imports: from __future__ import annotations
  import datetime
  from unittest import mock
  import pytest
  from airflow.models.dag import DAG
label_desc: Use image node_id 1 for calling a global function with example usage: mock_get_conn() and returns: conn_mock