code: def add_method(*clazzes, **kwargs):
      """Returns a decorator function that adds a new method to one or
      more classes."""
      allowDefault = kwargs.get("allowDefaultTable", False)
  
      def wrapper(method):
          done = []
          for clazz in clazzes:
              if clazz in done:
                  continue  # Support multiple names of a clazz
              done.append(clazz)
              assert (
                  allowDefault or clazz != DefaultTable
              ), "Oops, table class not found."
              assert (
                  method.__name__ not in clazz.__dict__
              ), "Oops, class '%s' has method '%s'." % (
                  clazz.__name__,
                  method.__name__,
              )
              setattr(clazz, method.__name__, method)
          return None
  
      return wrapper
  
imports: from fontTools.ttLib.tables.DefaultTable import DefaultTable
  import logging
label_desc: Use image node_id 1 for calling a global function with example usage: add_method() and returns: wrapper, None