code: def test_run_with_bytestream_source(
      self, json_serperdev_openapi_spec
  ):
      service = OpenAPIServiceToFunctions()
      spec_stream = ByteStream.from_string(json_serperdev_openapi_spec)
      result = service.run(
          sources=[spec_stream],
          system_messages=[
              "Some system message we don't care about here"
          ],
      )
      assert len(result["documents"]) == 1
      doc = result["documents"][0]
  
      # check that the content is as expected
      assert (
          doc.content
          == '{"name": "search", "description": "Search the web with Google", "parameters": {"type": "object", '
          '"properties": {"requestBody": {"type": "object", "properties": {"q": {"type": "string"}}}}}}'
      )
  
      # check that the metadata is as expected
      assert (
          doc.meta["system_message"]
          == "Some system message we don't care about here"
      )
      assert doc.meta["spec"] == json.loads(json_serperdev_openapi_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 3 for calling the TestOpenAPIServiceToFunctions obj's underlying member method code with example usage: obj.test_run_with_bytestream_source(json_serperdev_openapi_spec) without return types