code: def mock_serper_dev_search_result():
      with patch(
          "haystack.components.websearch.serper_dev.requests"
      ) as mock_run:
          mock_run.post.return_value = Mock(
              status_code=200, json=lambda: EXAMPLE_SERPERDEV_RESPONSE
          )
          yield mock_run
  
file_path: haystack/test/components/websearch/test_serperdev.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.serper_dev import SerperDevWebSearch, SerperDevError
label_desc: Use image node_id 1 for calling a global function with example usage: mock_serper_dev_search_result() without return types