code: def qfont_to_tuple(font):
      return (
          six.text_type(font.family()),
          int(font.pointSize()),
          font.italic(),
          font.bold(),
      )
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import copy
  import datetime
  import warnings
  import six
  from matplotlib import colors
  from matplotlib.backends.qt_compat import QtGui, QtWidgets, QtCore
label_desc: Use image node_id 4 for calling a global function with example usage: qfont_to_tuple(font) and returns: six,  int,  font,  font