code: def _update_lut(cmap, colors):
      """Change the LUT values in a matplotlib colormap in-place."""
      cmap._lut[:256] = colors
      cmap._set_extremes()
  
file_path: seaborn/seaborn/widgets.py
imports: import numpy
  import matplotlib.pyplot
  from matplotlib.colors import LinearSegmentedColormap
  from .miscplot import palplot
  from .palettes import color_palette, dark_palette, light_palette, diverging_palette, cubehelix_palette
label_desc: Use image node_id 2 for calling a global function with example usage: _update_lut(cmap, colors) without return types