code: def resize_ref(image, size):
      from PIL import Image
  
      return np.array(
          Image.fromarray(image).resize(size, Image.BILINEAR)
      )
  
imports: import argparse
  import os
  from math import ceil, sqrt
  import numpy
  import nvidia.dali.ops
  import nvidia.dali.types
  from nvidia.dali.pipeline import Pipeline
  from test_utils import get_dali_extra_path
  from test_utils import to_array
label_desc: Use image node_id 4 for calling a global function with example usage: resize_ref(image, size) and returns: np