code: def _mpl_cm(name, colorlist):
      cmap = LinearSegmentedColormap.from_list(name, colorlist, N=256)
      mpl.colormaps.register(cmap, name="cet_" + name)
  
file_path: arviz/arviz/__init__.py
imports: import logging
  import os
  from matplotlib.colors import LinearSegmentedColormap
  from matplotlib.pyplot import style
  import matplotlib
  from .data import *
  from .plots import *
  from .plots.backends import *
  from .stats import *
  from .rcparams import rc_context, rcParams
  from .utils import Numba, Dask, interactive_backend
  from .wrappers import *
label_desc: Use image node_id 1 for calling a global function with example usage: _mpl_cm(name, colorlist) without return types