code: def read_xml(fname):
      """
      Read an XML file <fname> which can be later parsed with parse_pages. Uses Python's xml.etree.ElementTree.
      Return a tuple with (XML tree object, tree root element)
      """
      tree = ET.parse(fname)
      root = tree.getroot()
  
      return tree, root
  
imports: import xml.etree.ElementTree
  from collections import OrderedDict
  import json
  import struct
  import imghdr
  import numpy
  from .geom import pt, rect
label_desc: Use image node_id 1 for calling a global function with example usage: read_xml(fname) and returns: tree,  root