class_docstr: Base class for Image, Audio and Video widgets.
  
  The `value` of this widget accepts a byte string.  The byte string is the
  raw data that you want the browser to display.
  
  If you pass `"url"` to the `"format"` trait, `value` will be interpreted
  as a URL as bytes encoded in UTF-8.
docstr: Convenience method for reading a file into `value`.
  
  Parameters
  ----------
  filename: str
      The location of a file to read into value from disk.
docstr_tok: ["Convenience","method","for","reading","a","file","into","`","value","`",".","Parameters","--","--","--","--","--","filename",":","str","The","location","of","a","file","to","read","into","value","from","disk","."]
code: def set_value_from_file(self, filename):
      """
      Convenience method for reading a file into `value`.
  
      Parameters
      ----------
      filename: str
          The location of a file to read into value from disk.
      """
      value = self._load_file_value(filename)
  
      self.value = value
  
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 3 for calling the _Media obj's underlying member method code with example usage: obj.set_value_from_file(filename) without return types