code: def processNode(reader):
      global result
  
      result = result + "%d %d %s %d\n" % (
          reader.Depth(),
          reader.NodeType(),
          reader.Name(),
          reader.IsEmptyElement(),
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: processNode(reader) without return types