code: def get_font_properties():
      # The original font is Calibri, if that is not installed, we fall back
      # to Carlito, which is metrically equivalent.
      if "Calibri" in matplotlib.font_manager.findfont("Calibri:bold"):
          return matplotlib.font_manager.FontProperties(
              family="Calibri", weight="bold"
          )
      if "Carlito" in matplotlib.font_manager.findfont("Carlito:bold"):
          print(
              "Original font not found. Falling back to Carlito. "
              "The logo text will not be in the correct font."
          )
          return matplotlib.font_manager.FontProperties(
              family="Carlito", weight="bold"
          )
      print(
          "Original font not found. "
          "The logo text will not be in the correct font."
      )
      return None
  
file_path: matplotlib/galleries/examples/misc/logos2.py
imports: import matplotlib.pyplot
  import numpy
  import matplotlib.cm
  import matplotlib.font_manager
  from matplotlib.patches import PathPatch, Rectangle
  from matplotlib.text import TextPath
  import matplotlib.transforms
label_desc: Use image node_id 1 for calling a global function with example usage: get_font_properties() and returns: None, matplotlib, matplotlib