code: def local_to_global_pos(self, x, params):
      if self.params.pad > 0 and self.params.transpose:
          return x - self.params.pad
      else:
          return x
  
file_path: calamari/calamari_ocr/ocr/dataset/imageprocessors/final_preparation.py
imports: from dataclasses import dataclass, field
  from typing import Type
  import numpy
  from paiargparse import pai_dataclass, pai_meta
  from tfaip.data.pipeline.processor.dataprocessor import DataProcessorParams
  from calamari_ocr.ocr.dataset.imageprocessors.data_preprocessor import ImageProcessor
  from calamari_ocr.utils.image import to_uint8, to_float32
label_desc: Use image node_id 2 for calling the FinalPreparation obj's underlying member method code with example usage: obj.local_to_global_pos(x, params) and returns: unknown, x