code: def to_prediction(self):
      self.texts = sorted(glob_all(self.texts))
      pred = deepcopy(self)
      pred.texts = [
          split_all_ext(t)[0] + self.pred_extension for t in self.texts
      ]
      return pred
  
imports: import codecs
  import os
  from copy import deepcopy
  from dataclasses import dataclass, field
  from typing import List
  import numpy
  import logging
  from paiargparse import pai_dataclass, pai_meta
  from tfaip.data.pipeline.definitions import PipelineMode, INPUT_PROCESSOR
  from calamari_ocr.ocr.dataset.datareader.base import CalamariDataGenerator, CalamariDataGeneratorParams, InputSample, SampleMeta
  from calamari_ocr.utils import split_all_ext, glob_all, keep_files_with_same_file_name
label_desc: Use image node_id 3 for calling the FileDataParams obj's underlying member method code with example usage: obj.to_prediction() and returns: pred