code: def test_show_cmyk_interp(tmpdir):
      """A CMYK TIFF has cyan, magenta, yellow, black bands."""
      with rasterio.open("tests/data/RGB.byte.tif") as src:
          profile = src.profile
  
      profile["photometric"] = "CMYK"
      profile["count"] = 4
      del profile["nodata"]
  
      tiffname = str(tmpdir.join("foo.tif"))
  
      with rasterio.open(tiffname, "w", **profile) as dst:
          assert dst.colorinterp == (
              ColorInterp.cyan,
              ColorInterp.magenta,
              ColorInterp.yellow,
              ColorInterp.black,
          )
  
      with rasterio.open(tiffname) as src:
          try:
              show(src)
              fig = plt.gcf()
              plt.close(fig)
          except ImportError:
              pass
  
imports: import pytest
  import matplotlib
  import numpy
  import rasterio
  from rasterio.plot import show, show_hist, get_plt, plotting_extent, adjust_band
  from rasterio.enums import ColorInterp
label_desc: Use image node_id 5 for calling a global function with example usage: test_show_cmyk_interp(tmpdir) without return types