code: def get_with_boundaries(self, name, boundaries):
          r
          cmap = self.get_colortable(name)
          return mcolors.BoundaryNorm(boundaries, cmap.N), cmap
docs: r"""Get a color table from the registry with a corresponding norm.
  
          Builds a `matplotlib.colors.BoundaryNorm` using `boundaries`.
  
          Parameters
          ----------
          name : str
              The name under which the color table will be stored
          boundaries : array_like
              The list of boundaries for the norm
  
          Returns
          -------
          `matplotlib.colors.BoundaryNorm`, `matplotlib.colors.ListedColormap`
              The boundary norm based on `boundaries`, and the color table itself.