class_docstr: UploadFile with a sha attribute.
class_docstr_tok: ["UploadFile","with","a","sha","attribute","."]
code: def __init__(
      self,
      file: BinaryIO,
      *,
      size: int | None = None,
      filename: str | None = None,
      headers: Headers | None = None,
  ) -> None:
      super().__init__(
          file, size=size, filename=filename, headers=headers
      )
      self.sha = hashlib.sha1()
  
imports: from __future__ import annotations
  import hashlib
  import json
  from collections import deque
  from dataclasses import dataclass
  from tempfile import NamedTemporaryFile, _TemporaryFileWrapper
  from typing import TYPE_CHECKING, AsyncGenerator, BinaryIO, List, Optional, Tuple, Union
  import fastapi
  import httpx
  import multipart
  from gradio_client.documentation import document, set_documentation_group
  from multipart.multipart import parse_options_header
  from starlette.datastructures import FormData, Headers, UploadFile
  from starlette.formparsers import MultiPartException, MultipartPart
  from gradio import utils
  from gradio.data_classes import PredictBody
  from gradio.exceptions import Error
  from gradio.helpers import EventData
  from gradio.state_holder import SessionState
label_desc: Use image node_id 1 to create a new GradioUploadFile object from inherited base classes: UploadFile with example: obj = GradioUploadFile(file)