code: def to_spec(self) -> dict[str, t.Any]:
      return {
          "id": super().descriptor_id,
          "args": {
              "kind": "binaryio",
              "mime_type": self._mime_type,
          },
      }
  
imports: from __future__ import annotations
  import io
  import logging
  import os
  import typing
  from functools import lru_cache
  from multipart.multipart import parse_options_header
  from starlette.datastructures import UploadFile
  from starlette.requests import Request
  from starlette.responses import Response
  from ...exceptions import BadInput
  from ...exceptions import BentoMLException
  from ...exceptions import InvalidArgument
  from ...exceptions import MissingDependencyException
  from ...grpc.utils import import_generated_stubs
  from ..service.openapi import SUCCESS_DESCRIPTION
  from ..service.openapi.specification import MediaType
  from ..service.openapi.specification import Schema
  from ..types import FileLike
  from ..utils import resolve_user_filepath
  from ..utils.http import set_cookies
  from .base import IODescriptor
label_desc: Use image node_id 1 for calling the BytesIOFile obj's underlying member method code with example usage: obj.to_spec() and returns: dict