code: def get_interpolation(type="random"):
      if type == "random":
          choice = [
              cv2.INTER_NEAREST,
              cv2.INTER_LINEAR,
              cv2.INTER_CUBIC,
              cv2.INTER_AREA,
          ]
          interpolation = choice[random.randint(0, len(choice) - 1)]
      elif type == "nearest":
          interpolation = cv2.INTER_NEAREST
      elif type == "linear":
          interpolation = cv2.INTER_LINEAR
      elif type == "cubic":
          interpolation = cv2.INTER_CUBIC
      elif type == "area":
          interpolation = cv2.INTER_AREA
      else:
          raise TypeError(
              "Interpolation types only nearest, linear, cubic, area are supported!"
          )
      return interpolation
  
imports: import math
  import numbers
  import random
  import cv2
  import numpy
  from paddle.vision.transforms import Compose, ColorJitter
label_desc: Use image node_id 4 for calling a global function with example usage: get_interpolation(type) and returns: interpolation