class_docstr: This class can read Abbyy documents out of a directory
code: def parseRect(node, required=True) -> Rect:
      try:
          a = XMLReader.requireAttr(node, ["l", "t", "r", "b"])
  
          rect = Rect(
              int(a["l"]), int(a["t"]), int(a["r"]), int(a["b"])
          )
  
      except Exception as e:
          if required:
              raise e
          else:
              return None
  
      return rect
  
file_path: calamari/calamari_ocr/ocr/dataset/datareader/abbyy/xml/reader.py
imports: import os
  from lxml import etree
  from .data import Book, Page, Block, Format, Line, Par, Rect
  from .exceptions import XMLParseError
  from tqdm import tqdm
  import logging
label_desc: Use image node_id 3 for calling the XMLReader obj's underlying member method code with example usage: obj.parseRect(node, required) and returns: rect, None