code: def test_demo_plot_map():
      # This is only a smoke test
      mpl.use("svg")
      import matplotlib.pyplot as plt
  
      plt.switch_backend("svg")
      demo_plot_map()
      # Test the black background code path
      demo_plot_map(black_bg=True)
  
file_path: nipy/nipy/labs/viz_tools/test/test_activation_maps.py
imports: import tempfile
  import numpy
  import pytest
  from unittest.mock import patch
  from ..activation_maps import demo_plot_map, plot_anat, plot_map
  from ..anat_cache import _AnatCache, mni_sform
label_desc: Use image node_id 1 for calling a global function with example usage: test_demo_plot_map() without return types