code: def mock_hook(monkeypatch):
      monkeypatch.setattr(OpenSearchHook, "search", MockSearch.search)
      monkeypatch.setattr(OpenSearchHook, "client", MockSearch.client)
      monkeypatch.setattr(OpenSearchHook, "index", MockSearch.index)
  
file_path: airflow/tests/providers/opensearch/conftest.py
imports: from __future__ import annotations
  from typing import Any
  import pytest
  from opensearchpy import OpenSearch
  from airflow.models import Connection
  from airflow.providers.opensearch.hooks.opensearch import OpenSearchHook
  from airflow.utils import db
label_desc: Use image node_id 1 for calling a global function with example usage: mock_hook(monkeypatch) without return types