code: def write(self, data, text):
      if not data.dtype == np.uint8:
          raise TypeError("Data for hdf5 must have type np.uint8")
  
      self.data.append(data)
      self.text.append(text)
  
      if len(self.data) >= self.n_max:
          self.finish_chunck()
  
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 6 for calling the Hdf5DatasetWriter obj's underlying member method code with example usage: obj.write(data, text) without return types