class_docstr: Creates an image component that can be used to upload images (as an input) or display images (as an output).
  Preprocessing: passes the uploaded image as a {numpy.array}, {PIL.Image} or {str} filepath depending on `type`. For SVGs, the `type` parameter is ignored and the filepath of the SVG is returned.
  Postprocessing: expects a {numpy.array}, {PIL.Image} or {str} or {pathlib.Path} filepath to an image and displays the image.
  Examples-format: a {str} local filepath or URL to an image.
  Demos: image_mod, image_mod_default_image
  Guides: image-classification-in-pytorch, image-classification-in-tensorflow, image-classification-with-vision-transformers, create-your-own-friends-with-a-gan
class_docstr_tok: ["Creates","an","image","component","that","can","be","used","to","upload","images","(","as","an","input",")","or","display","images","(","as","an","output",")",".","Preprocessing",":","passes","the","uploaded","image","as","a","{","numpy.array","}",",","{","PIL.Image","}","or","{","str","}","filepath","depending","on","`","type","`",".","For","SVGs",",","the","`","type","`","parameter","is","ignored","and","the","filepath","of","the","SVG","is","returned",".","Postprocessing",":","expects","a","{","numpy.array","}",",","{","PIL.Image","}","or","{","str","}","or","{","pathlib.Path","}","filepath","to","an","image","and","displays","the","image",".","Examples-format",":","a","{","str","}","local","filepath","or","URL","to","an","image",".","Demos",":","image_mod",",","image_mod_default_image","Guides",":","image-classification-in-pytorch",",","image-classification-in-tensorflow",",","image-classification-with-vision-transformers",",","create-your-own-friends-with-a-gan"]
code: def check_streamable(self):
      if self.streaming and self.sources != ["webcam"]:
          raise ValueError(
              "Image streaming only available if sources is ['webcam']. Streaming not supported with multiple sources."
          )
  
imports: from __future__ import annotations
  import warnings
  from pathlib import Path
  from typing import Any, Literal, cast
  import numpy
  from gradio_client.documentation import document, set_documentation_group
  from PIL import Image
  from PIL import ImageOps
  import gradio.image_utils
  from gradio import utils
  from gradio.components.base import Component, StreamingInput
  from gradio.data_classes import FileData
  from gradio.events import Events
label_desc: Use image node_id 4 for calling the Image obj's underlying member method code with example usage: obj.check_streamable() without return types