code: def set_colors(colors=None):
      """Sets the global color scheme (colors should be a list of rgb float values)."""
      global _COLORS
      default_colors = [
          [0.000, 0.447, 0.741],
          [0.850, 0.325, 0.098],
          [0.929, 0.694, 0.125],
          [0.494, 0.184, 0.556],
          [0.466, 0.674, 0.188],
          [0.301, 0.745, 0.933],
          [0.635, 0.078, 0.184],
          [0.300, 0.300, 0.300],
          [0.600, 0.600, 0.600],
          [1.000, 0.000, 0.000],
      ]
      colors = default_colors if colors is None else colors
      colors, n = np.array(colors), len(colors)
      err_str = "Invalid colors list: {}".format(colors)
      assert ((colors >= 0) & (colors <= 1)).all() and colors.shape[
          1
      ] == 3, err_str
      _COLORS = np.tile(colors, (int(np.ceil((10000 / n))), 1)).reshape(
          (-1, 3)
      )
  
file_path: pycls/pycls/sweep/plotting.py
imports: import matplotlib.lines
  import matplotlib.pyplot
  import matplotlib.ticker
  import numpy
  import pycls.models.regnet
  from pycls.sweep.analysis import get_info, get_vals, sort_sweep
label_desc: Use image node_id 2 for calling a global function with example usage: set_colors(colors) without return types