code: def __init__(self, ax, bbox, color, *, extent=(0, 1, 0, 1), **kwargs):
      super().__init__(ax, extent=extent, **kwargs)
      self._bbox = bbox
      self._ribbonbox = RibbonBox(color)
      self.set_transform(BboxTransformTo(bbox))
  
file_path: matplotlib/galleries/examples/misc/demo_ribbon_box.py
imports: import matplotlib.pyplot
  import numpy
  from matplotlib import cbook
  from matplotlib import colors
  from matplotlib.image import AxesImage
  from matplotlib.transforms import Bbox, BboxTransformTo, TransformedBbox
label_desc: Use image node_id 1 to create a new RibbonBoxImage object from inherited base classes: AxesImage with example: obj = RibbonBoxImage(ax, bbox, color)