code: def json_serperdev_openapi_spec():
      serper_spec = """
              {
                  "openapi": "3.0.0",
                  "info": {
                      "title": "SerperDev",
                      "version": "1.0.0",
                      "description": "API for performing search queries"
                  },
                  "servers": [
                      {
                          "url": "https://google.serper.dev"
                      }
                  ],
                  "paths": {
                      "/search": {
                          "post": {
                              "operationId": "search",
                              "description": "Search the web with Google",
                              "requestBody": {
                                  "required": true,
                                  "content": {
                                      "application/json": {
                                          "schema": {
                                              "type": "object",
                                              "properties": {
                                                  "q": {
                                                      "type": "string"
                                                  }
                                              }
                                          }
                                      }
                                  }
                              },
                              "responses": {
                                  "200": {
                                      "description": "Successful response",
                                      "content": {
                                          "application/json": {
                                              "schema": {
                                                  "type": "object",
                                                  "properties": {
                                                      "searchParameters": {
                                                          "type": "undefined"
                                                      },
                                                      "knowledgeGraph": {
                                                          "type": "undefined"
                                                      },
                                                      "answerBox": {
                                                          "type": "undefined"
                                                      },
                                                      "organic": {
                                                          "type": "undefined"
                                                      },
                                                      "topStories": {
                                                          "type": "undefined"
                                                      },
                                                      "peopleAlsoAsk": {
                                                          "type": "undefined"
                                                      },
                                                      "relatedSearches": {
                                                          "type": "undefined"
                                                      }
                                                  }
                                              }
                                          }
                                      }
                                  }
                              },
                              "security": [
                                  {
                                      "apikey": []
                                  }
                              ]
                          }
                      }
                  },
                  "components": {
                      "securitySchemes": {
                          "apikey": {
                              "type": "apiKey",
                              "name": "x-api-key",
                              "in": "header"
                          }
                      }
                  }
              }
              """
      return serper_spec
  
file_path: haystack/test/components/converters/test_openapi_functions.py
imports: import json
  import sys
  import tempfile
  import pytest
  from haystack.components.converters import OpenAPIServiceToFunctions
  from haystack.dataclasses import ByteStream
label_desc: Use image node_id 1 for calling a global function with example usage: json_serperdev_openapi_spec() and returns: serper_spec