code: def visit(visitor, font, *args, **kwargs):
      # Some objects have links back to TTFont; even though we
      # have a check in visitAttr to stop them from recursing
      # onto TTFont, sometimes they still do, for example when
      # someone overrides visitAttr.
      if hasattr(visitor, "font"):
          return False
  
      visitor.font = font
      for tag in font.keys():
          visitor.visit(font[tag], *args, **kwargs)
      del visitor.font
      return False
  
imports: from fontTools.misc.visitor import Visitor
  from fontTools.ttLib import TTFont
label_desc: Use image node_id 1 for calling a global function with example usage: visit(visitor, font) and returns: False, False