class_docstr: Displays an image as a widget.
  
  The `value` of this widget accepts a byte string.  The byte string is the
  raw image data that you want the browser to display.  You can explicitly
  define the format of the byte string using the `format` trait (which
  defaults to "png").
  
  If you pass `"url"` to the `"format"` trait, `value` will be interpreted
  as a URL as bytes encoded in UTF-8.
code: def from_file(cls, filename, **kwargs):
      return cls._from_file("image", filename, **kwargs)
  
imports: import mimetypes
  from .widget_core import CoreWidget
  from .domwidget import DOMWidget
  from .valuewidget import ValueWidget
  from .widget import register
  from traitlets import Unicode, CUnicode, Bool
  from .trait_types import CByteMemoryView
label_desc: Use image node_id 2 for calling the Image obj's underlying member method code with example usage: obj.from_file(cls, filename) and returns: cls