code: def resize(src, size, interpolation=cv2.INTER_LINEAR):
      """Decode image from str buffer.
      Wrapper for cv2.imresize that uses mx.nd.NDArray
  
      Parameters
      ----------
      src : NDArray
          image in (width, height, channels)
      size : tuple
          target size in (width, height)
      interpolation : int
          same as interpolation for cv2.imresize
  
      Returns
      -------
      img : NDArray
          resized image
      """
      hdl = NDArrayHandle()
      check_call(
          _LIB.MXCVResize(
              src.handle,
              mx_uint(size[0]),
              mx_uint(size[1]),
              interpolation,
              ctypes.byref(hdl),
          )
      )
      return mx.nd.NDArray(hdl)
  
file_path: mxnet/plugin/opencv/opencv.py
imports: import random
  import ctypes
  import cv2
  import mxnet
  from mxnet.base import _LIB
  from mxnet.base import mx_uint, NDArrayHandle, check_call
label_desc: Use image node_id 2 for calling a global function with example usage: resize(src, size, interpolation) and returns: mx