code: def qfont_to_tuple(font):
      return (
          str(font.family()),
          int(font.pointSize()),
          font.italic(),
          font.bold(),
      )
  
imports: from ast import literal_eval
  import copy
  import datetime
  import logging
  from numbers import Integral, Real
  from matplotlib import _api, colors
  from matplotlib.backends.qt_compat import _to_int, QtGui, QtWidgets, QtCore
label_desc: Use image node_id 4 for calling a global function with example usage: qfont_to_tuple(font) and returns: str,  int,  font,  font