code: def test_plot_connectome_masked_array_sparse_matrix(
      node_coords, adjacency, base_params
  ):
      """Smoke tests for plot_connectome with masked arrays and sparse
      matrices as inputs.
      """
      masked_adjacency_matrix = np.ma.masked_array(
          adjacency, np.abs(adjacency) < 0.5
      )
      plot_connectome(
          masked_adjacency_matrix, node_coords, **base_params
      )
      sparse_adjacency_matrix = sparse.coo_matrix(adjacency)
      plot_connectome(
          sparse_adjacency_matrix, 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 7 for calling a global function with example usage: test_plot_connectome_masked_array_sparse_matrix(node_coords, adjacency, base_params) without return types