code: def test_colormap_display_patch(self):
      orig_repr_png = getattr(mpl.colors.Colormap, "_repr_png_", None)
      orig_repr_html = getattr(mpl.colors.Colormap, "_repr_html_", None)
  
      try:
          palettes._patch_colormap_display()
          cmap = mpl.cm.Reds
          assert cmap._repr_html_().startswith('<img alt="Reds')
      finally:
          if orig_repr_png is not None:
              mpl.colors.Colormap._repr_png_ = orig_repr_png
          if orig_repr_html is not None:
              mpl.colors.Colormap._repr_html_ = orig_repr_html
  
imports: import colorsys
  import numpy
  import matplotlib
  import pytest
  import numpy.testing
  from seaborn import palettes, utils, rcmod
  from seaborn.external import husl
  from seaborn._compat import get_colormap
  from seaborn.colors import xkcd_rgb, crayons
label_desc: Use image node_id 38 for calling the TestColorPalettes obj's underlying member method code with example usage: obj.test_colormap_display_patch() without return types