code: def store_text_prediction(self, prediction, sample_id, output_dir):
      # an Abbyy dataset stores the prediction in one XML file
      sample = self.sample_by_id(sample_id)
      sample["format"].text = prediction.sentence
  
imports: import logging
  from copy import deepcopy
  from dataclasses import dataclass, field
  from typing import List, Generator
  import numpy
  from paiargparse import pai_dataclass, pai_meta
  from tfaip.data.pipeline.definitions import PipelineMode, TARGETS_PROCESSOR, INPUT_PROCESSOR
  from tqdm import tqdm
  from calamari_ocr.ocr.dataset.datareader.abbyy.xml import XMLReader, XMLWriter
  from calamari_ocr.ocr.dataset.datareader.base import CalamariDataGenerator, CalamariDataGeneratorParams, InputSample, SampleMeta
  from calamari_ocr.utils import split_all_ext, glob_all
label_desc: Use image node_id 2 for calling the AbbyyGenerator obj's underlying member method code with example usage: obj.store_text_prediction(prediction, sample_id, output_dir) without return types