code: def load_image(image_path: str) -> np.ndarray:
      # Load an image in np.uint8 format
      with Image.open(image_path) as img:
          img = np.array(img)
          return to_uint8(img)
  
file_path: calamari/calamari_ocr/utils/image.py
imports: from dataclasses import dataclass, field
  import numpy
  from PIL import Image
  from paiargparse import pai_dataclass, pai_meta
  import cv2
label_desc: Use image node_id 1 for calling a global function with example usage: load_image(image_path) and returns: to_uint8