code: def run_test(batch_size, device, tile, ratio, angle):
      pipe = get_pipeline(device, batch_size, tile, ratio, angle)
      pipe.build()
      results, inputs = pipe.run()
      if device == "gpu":
          results, inputs = results.as_cpu(), inputs.as_cpu()
      for i in range(batch_size):
          check(results[i], inputs[i], tile, ratio, angle)
  
file_path: DALI/dali/test/python/operator_1/test_gridmask.py
imports: from nvidia.dali.pipeline import Pipeline
  import nvidia.dali.fn
  import nvidia.dali.types
  import numpy
  import math
  import os
  import cv2
  import itertools
  from nose2.tools import params
  from test_utils import get_dali_extra_path
label_desc: Use image node_id 5 for calling a global function with example usage: run_test(batch_size, device, tile, ratio, angle) without return types