code: def group_gen(x, runs, groups):
      # For producing arrays such as ['a', 'a', 'b', 'b', 'a', 'a', ... ]
      return groups[(x // runs) % len(groups)]
  
label_desc: Use image node_id 1 for calling a global function with example usage: group_gen(x, runs, groups) and returns: groups