code: def _apply_single(self, data, meta):
      assert self.params.height > 0  # Not initialized
      scaled = scale_to_h(data, self.params.height)
      scale = scaled.shape[1] / data.shape[1]
      meta["scale_to_height"] = (scale,)
      return scaled
  
file_path: calamari/calamari_ocr/ocr/dataset/imageprocessors/scale_to_height_processor.py
imports: from dataclasses import dataclass, field
  from typing import Type
  import cv2
  import numpy
  from paiargparse import pai_dataclass
  from tfaip.data.pipeline.processor.dataprocessor import DataProcessorParams
  from calamari_ocr.ocr.dataset.imageprocessors.data_preprocessor import ImageProcessor
label_desc: Use image node_id 1 for calling the ScaleToHeightProcessor obj's underlying member method code with example usage: obj._apply_single(data, meta) and returns: scaled