code: def run_random_test(batch_size, device):
      pipe = get_random_pipeline(device, batch_size)
      pipe.build()
      for _ in range(16):
          results, inputs, tiles, ratios, angles = pipe.run()
          if device == "gpu":
              results, inputs = results.as_cpu(), inputs.as_cpu()
          for i in range(batch_size):
              tile = np.int32(tiles[i])
              ratio = np.float32(ratios[i])
              angle = np.float32(angles[i])
              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 7 for calling a global function with example usage: run_random_test(batch_size, device) without return types