code: def test_plot_anat():
      # This is only a smoke test
      mpl.use("svg")
      import matplotlib.pyplot as plt
  
      plt.switch_backend("svg")
      data = np.zeros((20, 20, 20))
      data[3:-3, 3:-3, 3:-3] = 1
      ortho_slicer = plot_anat(data, mni_sform, dim=True)
      ortho_slicer = plot_anat(
          data, mni_sform, cut_coords=(80, -120, -60)
      )
      # Saving forces a draw, and thus smoke-tests the axes locators
      plt.savefig(tempfile.TemporaryFile())
      ortho_slicer.edge_map(data, mni_sform, color="c")
  
      # Test saving with empty plot
      z_slicer = plot_anat(anat=False, slicer="z")
      plt.savefig(tempfile.TemporaryFile())
      z_slicer = plot_anat(slicer="z")
      plt.savefig(tempfile.TemporaryFile())
      z_slicer.edge_map(data, mni_sform, color="c")
      # Smoke test coordinate finder, with and without mask
      plot_map(np.ma.masked_equal(data, 0), mni_sform, slicer="x")
      plot_map(data, mni_sform, slicer="y")
  
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 2 for calling a global function with example usage: test_plot_anat() without return types