code: def print_jpg(
      self, filename_or_obj, *, metadata=None, pil_kwargs=None
  ):
      # savefig() has already applied savefig.facecolor; we now set it to
      # white to make imsave() blend semi-transparent figures against an
      # assumed white background.
      with mpl.rc_context({"savefig.facecolor": "white"}):
          self._print_pil(filename_or_obj, "jpeg", pil_kwargs, metadata)
  
imports: from contextlib import nullcontext
  from math import radians, cos, sin
  import numpy
  import matplotlib
  from matplotlib import _api, cbook
  from matplotlib.backend_bases import _Backend, FigureCanvasBase, FigureManagerBase, RendererBase
  from matplotlib.font_manager import fontManager, get_font
  from matplotlib.ft2font import LOAD_FORCE_AUTOHINT, LOAD_NO_HINTING, LOAD_DEFAULT, LOAD_NO_AUTOHINT
  from matplotlib.mathtext import MathTextParser
  from matplotlib.path import Path
  from matplotlib.transforms import Bbox, BboxBase
  from matplotlib.backends._backend_agg import RendererAgg
label_desc: Use image node_id 12 for calling the FigureCanvasAgg obj's underlying member method code with example usage: obj.print_jpg(filename_or_obj) without return types