code: def generate_rays(
      player_to_center_angle,
      mode="UNIFORM",
      quantity=12,
      starting_angle=30,
  ):
      rays = {"Ray Player": player_to_center_angle}
  
      clockwise = True
      current_angle = starting_angle
      current_angle_count = 0
  
      if mode == "UNIFORM":
          while len(rays) < quantity:
              ray_label = f"Ray Player {'-' if clockwise else '+'} {str(current_angle)}"
  
              if clockwise:
                  rays[ray_label] = (
                      player_to_center_angle - current_angle + 179
                  ) % 360 - 179
              else:
                  rays[ray_label] = (
                      player_to_center_angle + current_angle + 179
                  ) % 360 - 179
  
              current_angle_count += 1
              clockwise = not clockwise
  
              if current_angle_count == 2:
                  current_angle_count = 0
                  current_angle += starting_angle
  
      return rays
  
label_desc: Use image node_id 1 for calling a global function with example usage: generate_rays(player_to_center_angle, mode, quantity, starting_angle) and returns: rays