class_docstr: load data from a given directory
class_docstr_tok: ["load","data","from","a","given","directory"]
code: def __next__(self):
      if self.currIdx >= len(self.mats):
          raise StopIteration()
  
      data = Data()
      data.mat = loadFromCSV(self.mats[self.currIdx])
      data.gt = codecs.open(self.gts[self.currIdx], "r", "utf8").read()
      data.fn = self.fns[self.currIdx]
  
      self.currIdx += 1
      return data
  
file_path: calamari/calamari_ocr/thirdparty/ctcwordbeamsearch/DataLoader.py
imports: from __future__ import division
  from __future__ import print_function
  import codecs
  import os.path
  import numpy
  from LanguageModel import LanguageModel
label_desc: Use image node_id 3 for calling the DataLoader obj's underlying member method code with example usage: obj.__next__() and returns: data