code: def __init__(self, methodName):
      _TestCase.__init__(self, methodName)
      # Python 3 renamed assertRaisesRegexp to assertRaisesRegex,
      # and fires deprecation warnings if a program uses the old name.
      if not hasattr(self, "assertRaisesRegex"):
          self.assertRaisesRegex = self.assertRaisesRegexp
  
imports: from collections.abc import Iterable
  from io import BytesIO
  import os
  import re
  import shutil
  import sys
  import tempfile
  from unittest import TestCase
  from fontTools.config import Config
  from fontTools.misc.textTools import tobytes
  from fontTools.misc.xmlWriter import XMLWriter
label_desc: Use image node_id 1 to create a new TestCase object from inherited base classes: _TestCase with example: obj = TestCase(methodName)