code: def test_example_caching_with_streaming_async(self, monkeypatch):
      with patch(
          "gradio.utils.get_cache_folder",
          return_value=Path(tempfile.mkdtemp()),
      ):
          chatbot = gr.ChatInterface(
              async_stream,
              examples=["hello", "hi"],
              cache_examples=True,
          )
          prediction_hello = chatbot.examples_handler.load_from_cache(0)
          prediction_hi = chatbot.examples_handler.load_from_cache(1)
          assert prediction_hello[0].root[0] == ("hello", "hello")
          assert prediction_hi[0].root[0] == ("hi", "hi")
  
imports: import tempfile
  from concurrent.futures import wait
  from pathlib import Path
  from unittest.mock import patch
  import pytest
  import gradio
label_desc: Use image node_id 8 for calling the TestInit obj's underlying member method code with example usage: obj.test_example_caching_with_streaming_async(monkeypatch) without return types