code: def openapi_service_mock():
      return MagicMock(spec=OpenAPI)
  
file_path: haystack/test/components/connectors/test_openapi_service.py
imports: import json
  import pytest
  from unittest.mock import MagicMock, Mock
  from openapi3 import OpenAPI
  from haystack.components.connectors import OpenAPIServiceConnector
  from haystack.dataclasses import ChatMessage
label_desc: Use image node_id 1 for calling a global function with example usage: openapi_service_mock() and returns: MagicMock