code: def load_frames(
      sample_info=types.SampleInfo(0, 0, 0, 0), hint_grid=None
  ):
      img = cv2.imread(os.path.join(images_dir, "alley.png"))
      img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
      if sample_info.idx_in_epoch % 2:
          img = cv2.resize(
              img,
              dsize=(img.shape[0] // 2, img.shape[1] // 2),
              interpolation=cv2.INTER_AREA,
          )
  
      xy, ofs = get_mapping(img.shape[:2])
      remap = (xy + ofs - np.array([[[0.5, 0.5]]])).astype(np.float32)
  
      warped = cv2.remap(
          img, remap, None, interpolation=cv2.INTER_LINEAR
      )
      result = np.array([img, warped])
  
      if hint_grid is not None:
          result = [result]
          result.append(np.zeros(shape=result[0].shape, dtype=np.uint8))
      return result
  
imports: import os
  import numpy
  import platform
  import random
  import cv2
  from nvidia.dali.pipeline import pipeline_def
  from nvidia.dali import fn, types
  from test_utils import get_dali_extra_path, get_arch
  from nose_utils import raises, assert_raises
  from nose import SkipTest
label_desc: Use image node_id 3 for calling a global function with example usage: load_frames(sample_info, hint_grid) and returns: result