code: def generate_data(frames, width, height, channel_dim, type):
      value_range = type_range(type)
      no_frames = frames is None
      if no_frames:
          frames = 1
      x = (np.arange(0, width) * value_range // width).astype(type)[
          np.newaxis, np.newaxis, :
      ]
      y = (np.arange(0, height) * value_range // height).astype(type)[
          np.newaxis, :, np.newaxis
      ]
      f = (np.arange(0, frames) * value_range // frames).astype(type)[
          :, np.newaxis, np.newaxis
      ]
      x = np.broadcast_to(x, (frames, height, width))
      y = np.broadcast_to(y, (frames, height, width))
      f = np.broadcast_to(f, (frames, height, width))
      seq = np.stack([x, y, f], axis=channel_dim)
      if no_frames:
          seq = seq[:, 0] if channel_dim == 0 else seq[0]
      return seq
  
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 7 for calling a global function with example usage: generate_data(frames, width, height, channel_dim, type) and returns: seq