code: def test_text_openapi_request_responses():
      mime_type = "text/plain"
  
      request_body = Text().openapi_request_body()
      assert request_body["required"]
  
      assert mime_type in request_body["content"]
  
      responses = Text().openapi_responses()
  
      assert responses["content"]
  
      assert mime_type in responses["content"]
  
file_path: BentoML/tests/unit/_internal/io/test_text.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  import pytest
  from bentoml._internal.utils import LazyLoader
  from bentoml.grpc.utils import import_generated_stubs
  from bentoml.io import Text
label_desc: Use image node_id 3 for calling a global function with example usage: test_text_openapi_request_responses() without return types