code: def weaviate_hook():
      """
      Fixture to create a WeaviateHook instance for testing.
      """
      mock_conn = Mock()
  
      # Patch the WeaviateHook get_connection method to return the mock connection
      with mock.patch.object(
          WeaviateHook, "get_connection", return_value=mock_conn
      ):
          hook = WeaviateHook(conn_id=TEST_CONN_ID)
      return hook
  
imports: from __future__ import annotations
  from contextlib import ExitStack
  from unittest import mock
  from unittest.mock import MagicMock, Mock
  import pandas
  import pytest
  import requests
  import weaviate
  from weaviate import ObjectAlreadyExistsException
  from airflow.models import Connection
  from airflow.providers.weaviate.hooks.weaviate import WeaviateHook
label_desc: Use image node_id 1 for calling a global function with example usage: weaviate_hook() and returns: hook