code: def _apply_single(self, data: np.ndarray, meta):
      data = to_uint8(data)
  
      if data.ndim == 3:
          data = np.mean(data.astype("float32"), axis=2).astype(
              data.dtype
          )
  
      return data
  
file_path: calamari/calamari_ocr/ocr/dataset/imageprocessors/data_range_normalizer.py
imports: from dataclasses import dataclass
  from typing import Type
  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
  from calamari_ocr.utils.image import to_uint8
label_desc: Use image node_id 1 for calling the DataRangeProcessor obj's underlying member method code with example usage: obj._apply_single(data, meta) and returns: data