code: def test_conversational_in_blocks(self):
      with gr.Blocks() as io:
          gr.load("models/microsoft/DialoGPT-medium")
      app, _, _ = io.launch(prevent_thread_lock=True)
      client = TestClient(app)
      response = client.post(
          "/api/predict/",
          json={
              "session_hash": "foo",
              "data": ["Hi!", None],
              "fn_index": 0,
          },
      )
      output = response.json()
      assert isinstance(output["data"], list)
      assert isinstance(output["data"][0], list)
      assert "foo" in app.state_holder
  
imports: import os
  import tempfile
  import textwrap
  import warnings
  from pathlib import Path
  from unittest.mock import MagicMock, patch
  import pytest
  from fastapi.testclient import TestClient
  from gradio_client import media_data
  from huggingface_hub import HfFolder
  import gradio
  from gradio.context import Context
  from gradio.exceptions import GradioVersionIncompatibleError, InvalidApiNameError
  from gradio.external import TooManyRequestsError, cols_to_rows, get_tabular_examples
label_desc: Use image node_id 25 for calling the TestLoadInterface obj's underlying member method code with example usage: obj.test_conversational_in_blocks() without return types