code: def resize(img: np.ndarray, height: int, width: int) -> np.ndarray:
      if cv2:
          return cv2.resize(
              img, (width, height), interpolation=cv2.INTER_AREA
          )
      return transform.resize(img, (height, width))
  
imports: import logging
  import numpy
  from ray.rllib.utils.annotations import DeveloperAPI
label_desc: Use image node_id 1 for calling a global function with example usage: resize(img, height, width) and returns: transform, cv2