code: def bbox_to_path(bbox):
      """
      Turn the given :class:`matplotlib.transforms.Bbox` instance into
      a :class:`matplotlib.path.Path` instance.
  
      """
      verts = np.array(
          [
              [bbox.x0, bbox.y0],
              [bbox.x1, bbox.y0],
              [bbox.x1, bbox.y1],
              [bbox.x0, bbox.y1],
              [bbox.x0, bbox.y0],
          ]
      )
      return mpath.Path(verts)
  
imports: import matplotlib.path
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: bbox_to_path(bbox) and returns: mpath