code: def toXML(self, writer, ttFont):
      writer.simpletag("layer", name=self.name, colorID=self.colorID)
      writer.newline()
  
file_path: catboost/contrib/python/fonttools/fontTools/ttLib/tables/C_O_L_R_.py
imports: from fontTools.misc.textTools import safeEval
  from .None import DefaultTable
label_desc: Use image node_id 2 for calling the LayerRecord obj's underlying member method code with example usage: obj.toXML(writer, ttFont) without return types