code: def __init__(self, texts, substr=None, match=None):
      self.texts = texts
  
      if substr:
          assert substr.shape[0] == len(self.texts)
          self.substr = substr
      else:
          self.substr = np.zeros((len(texts), 3), dtype=int)
  
      self.match = match
  
file_path: calamari/calamari_ocr/ocr/dataset/textprocessors/text_synchronizer.py
imports: import numpy
label_desc: Use image node_id 1 to create a new Sync object  with example: obj = Sync(texts, substr, match)