code: def test_plot_connectome_to_file(
      adjacency, node_coords, base_params, tmp_path
  ):
      """Smoke test for plot_connectome and saving to file."""
      base_params["display_mode"] = "x"
      filename = tmp_path / "temp.png"
      display = plot_connectome(
          adjacency, node_coords, output_file=filename, **base_params
      )
      assert display is None
      assert os.path.isfile(filename)
      assert os.path.getsize(filename) > 0
      plt.close()
  
imports: import os
  import matplotlib.pyplot
  import numpy
  import pytest
  from matplotlib.patches import FancyArrow
  from scipy import sparse
  from nilearn.plotting import plot_connectome
label_desc: Use image node_id 12 for calling a global function with example usage: test_plot_connectome_to_file(adjacency, node_coords, base_params, tmp_path) without return types