code: def setUpClass(cls):
      AbstractTkTest.setUpClass.__func__(cls)
      try:
          cls.font = font.Font(
              root=cls.root, name=fontname, exists=True
          )
      except tkinter.TclError:
          cls.font = font.Font(
              root=cls.root, name=fontname, exists=False
          )
  
imports: import unittest
  import tkinter
  from tkinter import font
  from test.support import requires, gc_collect, ALWAYS_EQ
  from test.test_tkinter.support import AbstractTkTest, AbstractDefaultRootTest
label_desc: Use image node_id 1 for calling the FontTest obj's underlying member method code with example usage: obj.setUpClass(cls) without return types