code: def analyze_frame(image, channel_dim):
      def pixel(x, y):
          return image[:, y, x] if channel_dim == 0 else image[y, x, :]
  
      x0, y0, f0 = pixel(0, 0)
      x1, y1, f1 = pixel(-1, 0)
      x2, y2, f2 = pixel(0, -1)
      x3, y3, f3 = pixel(-1, -1)
      assert close(x0, x2), "x0 = {} != x2 = {}".format(x0, x2)
      assert close(x1, x3), "x1 = {} != x3 = {}".format(x1, x3)
      assert close(y0, y1), "y0 = {} != y1 = {}".format(y0, y1)
      assert close(y2, y3), "y2 = {} != y3 = {}".format(y2, y3)
      assert close(f0, f1) and close(f0, f2) and close(f0, f3)
      return x0, y0, x3, y3, int(np.round(f0))
  
file_path: DALI/dali/test/python/operator_2/test_random_resized_crop.py
imports: import numpy
  import nvidia.dali
  import nvidia.dali.fn
  import test_utils
label_desc: Use image node_id 2 for calling a global function with example usage: analyze_frame(image, channel_dim) and returns: x0,  y0,  x3,  y3,  int, unknown