code: def mock_searchapi_search_result():
      with patch(
          "haystack.components.websearch.searchapi.requests.get"
      ) as mock_get:
          mock_get.return_value = Mock(
              status_code=200, json=lambda: EXAMPLE_SEARCHAPI_RESPONSE
          )
          yield mock_get
  
file_path: haystack/test/components/websearch/test_searchapi.py
imports: import os
  from unittest.mock import Mock, patch
  import pytest
  from requests import Timeout, RequestException, HTTPError
  from haystack import Document
  from haystack.components.websearch.searchapi import SearchApiError, SearchApiWebSearch
label_desc: Use image node_id 1 for calling a global function with example usage: mock_searchapi_search_result() without return types