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