code: def _generate_color_palette(num_objects: int):
      palette = torch.tensor([2**25 - 1, 2**15 - 1, 2**21 - 1])
      return [tuple((i * palette) % 255) for i in range(num_objects)]
  
file_path: ImageAI/imageai/retinanet/utils.py
imports: from torchvision.io import ImageReadMode
  import torch
  from PIL import Image, ImageColor, ImageDraw, ImageFont
  from typing import List, Optional, Union, Tuple, BinaryIO
  import numpy
  import math
  import warnings
  import pathlib
label_desc: Use image node_id 4 for calling a global function with example usage: _generate_color_palette(num_objects) and returns: unknown