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.
code: def _get_repr(self, cls):
      # Truncate the value in the repr, since it will
      # typically be very, very large.
      class_name = self.__class__.__name__
  
      # Return value first like a ValueWidget
      signature = []
  
      sig_value = "value={!r}".format(self.value[:40].tobytes())
      if self.value.nbytes > 40:
          sig_value = sig_value[:-1] + "..." + sig_value[-1]
      signature.append(sig_value)
  
      for key in super(cls, self)._repr_keys():
          if key == "value":
              continue
          value = str(getattr(self, key))
          signature.append("{}={!r}".format(key, value))
      signature = ", ".join(signature)
      return "{}({})".format(class_name, signature)
  
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 6 for calling the _Media obj's underlying member method code with example usage: obj._get_repr(cls) and returns: str