code: def get_plot_colors(max_colors, color_format="pyplot"):
      """Generate colors for plotting."""
      colors = cl.scales["11"]["qual"]["Paired"]
      if max_colors > len(colors):
          colors = cl.to_rgb(cl.interp(colors, max_colors))
      if color_format == "pyplot":
          return [[j / 255.0 for j in c] for c in cl.to_numeric(colors)]
      return colors
  
file_path: pycls/pycls/core/plotting.py
imports: import colorlover
  import matplotlib.pyplot
  import plotly.graph_objs
  import plotly.offline
  import pycls.core.logging
label_desc: Use image node_id 1 for calling a global function with example usage: get_plot_colors(max_colors, color_format) and returns: colors, unknown