code: def test_plot_connectome_with_nans(
      adjacency, node_coords, base_params
  ):
      """Smoke test for plot_connectome with nans in the adjacency matrix."""
      adjacency[0, 1] = np.nan
      adjacency[1, 0] = np.nan
      base_params["node_color"] = np.array(
          ["green", "blue", "k", "yellow"]
      )
      plot_connectome(adjacency, node_coords, **base_params)
      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 8 for calling a global function with example usage: test_plot_connectome_with_nans(adjacency, node_coords, base_params) without return types