code: def test_resize():
      channel_first = False
      for interp, w, h in [
          (types.INTERP_NN, 640, 480),
          (types.INTERP_TRIANGULAR, 100, 80),
          (types.INTERP_LANCZOS3, 200, 100),
      ]:
          for dtype in [None, types.UINT8, types.FLOAT]:
              layout = "FCHW" if channel_first else "FHWC"
              channel_first = (
                  not channel_first
              )  # alternating pattern cuts number of cases by half
              yield _test_resize, layout, interp, dtype, w, h
  
file_path: DALI/dali/test/python/operator_2/test_resize_seq.py
imports: import nvidia.dali
  import nvidia.dali.fn
  import nvidia.dali.types
  import numpy
  import os.path
  from test_utils import check_batch
  import PIL.Image
label_desc: Use image node_id 7 for calling a global function with example usage: test_resize() without return types