code: def test_timeout_error(self, mock_get):
      mock_get.side_effect = Timeout
      ws = SearchApiWebSearch(api_key="api_key")
  
      with pytest.raises(TimeoutError):
          ws.run(query="Who is CEO of Microsoft?")
  
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 4 for calling the TestSearchApiSearchAPI obj's underlying member method code with example usage: obj.test_timeout_error(mock_get) without return types