code: def equal(lst):
      lst = list(lst)
      t = iter(lst)
      first = next(t)
      assert all(item == first for item in t), (
          "Expected all items to be equal: %s" % lst
      )
      return first
  
imports: from fontTools.misc.timeTools import timestampNow
  from fontTools.ttLib.tables.DefaultTable import DefaultTable
  from functools import reduce
  import operator
  import logging
label_desc: Use image node_id 1 for calling a global function with example usage: equal(lst) and returns: first