code: def make_out_to_in(meta, out_to_in_transformer, model_factor):
      def out_to_in(x: int) -> int:
          return out_to_in_transformer.local_to_global(
              x,
              model_factor=model_factor,
              data_proc_params=meta,
          )
  
      return out_to_in
  
file_path: calamari/calamari_ocr/ocr/voting/adapter.py
imports: from typing import List
  from tfaip.data.pipeline.definitions import Sample
  from tfaip.predict.multimodelvoter import MultiModelVoter
  from calamari_ocr.ocr.predict.params import PredictionResult
  from calamari_ocr.ocr.voting import voter_from_params
  from calamari_ocr.utils.output_to_input_transformer import OutputToInputTransformer
label_desc: Use image node_id 1 for calling a global function with example usage: make_out_to_in(meta, out_to_in_transformer, model_factor) and returns: out_to_in, out_to_in_transformer