code: def test_replace_inside():
      # This is only a smoke test
      replace_inside(plt.cm.jet, plt.cm.hsv, 0.2, 0.8)
      # We also test with gnuplot, which is defined using function
      if hasattr(plt.cm, "gnuplot"):
          # gnuplot is only in recent version of MPL
          replace_inside(plt.cm.gnuplot, plt.cm.gnuplot2, 0.2, 0.8)
  
file_path: nilearn/nilearn/plotting/tests/test_cm.py
imports: import matplotlib.pyplot
  import numpy
  import pytest
  from nilearn.plotting.cm import dim_cmap, mix_colormaps, replace_inside
label_desc: Use image node_id 2 for calling a global function with example usage: test_replace_inside() without return types