code: def array_gen(groups, run_length, num_samples):
      vals = [
          group_gen(x, run_length, groups) for x in range(num_samples)
      ]
      return np.asarray(vals)
  
label_desc: Use image node_id 2 for calling a global function with example usage: array_gen(groups, run_length, num_samples) and returns: np