code: def register_colormap(name, cmap):
      """Handle changes to matplotlib colormap interface in 3.6."""
      try:
          if name not in mpl.colormaps:
              mpl.colormaps.register(cmap, name=name)
      except AttributeError:
          mpl.cm.register_cmap(name, cmap)
  
file_path: seaborn/seaborn/_compat.py
imports: from __future__ import annotations
  from typing import Literal
  import numpy
  import matplotlib
  from matplotlib.figure import Figure
  from seaborn.utils import _version_predates
label_desc: Use image node_id 3 for calling a global function with example usage: register_colormap(name, cmap) without return types