code: def __init__(self, output_filename, n_max=10000):
      self.n_max = n_max
      self.data = []
      self.text = []
      self.files = []
      self.current_chunk = 0
      self.output_filename = output_filename
  
file_path: calamari/calamari_ocr/ocr/dataset/datareader/hdf5/hdf5_dataset_writer.py
imports: import numpy
  import h5py
  from tfaip import PipelineMode
label_desc: Use image node_id 1 to create a new Hdf5DatasetWriter object  with example: obj = Hdf5DatasetWriter(output_filename, n_max)