code: def test_font_priority():
      with rc_context(
          rc={"font.sans-serif": ["cmmi10", "Bitstream Vera Sans"]}
      ):
          fontfile = findfont(FontProperties(family=["sans-serif"]))
      assert Path(fontfile).name == "cmmi10.ttf"
  
      # Smoketest get_charmap, which isn't used internally anymore
      font = get_font(fontfile)
      cmap = font.get_charmap()
      assert len(cmap) == 131
      assert cmap[8729] == 30
  
imports: from io import BytesIO, StringIO
  import gc
  import multiprocessing
  import os
  from pathlib import Path
  from PIL import Image
  import shutil
  import subprocess
  import sys
  import warnings
  import numpy
  import pytest
  from matplotlib.font_manager import findfont, findSystemFonts, FontEntry, FontProperties, fontManager, json_dump, json_load, get_font, is_opentype_cff_font, MSUserFontDirectories, _get_fontconfig_fonts, ttfFontProperty
  from matplotlib import cbook, ft2font, pyplot, rc_context, figure
label_desc: Use image node_id 1 for calling a global function with example usage: test_font_priority() without return types