code: def render(fig, rec):
      """Given matplotlib axes and a record, adds the record as a patch
      and returns the axes so that reduce() can accumulate more
      patches."""
      fig.gca().add_patch(
          PolygonPatch(
              rec["geometry"], fc=BLUE, ec=BLUE, alpha=0.5, zorder=2
          )
      )
      return fig
  
imports: from matplotlib import pyplot
  from descartes import PolygonPatch
  import fiona
label_desc: Use image node_id 1 for calling a global function with example usage: render(fig, rec) and returns: fig