code: def test_plot_connectome_wrong_shapes():
      """Tests that ValueErrors are raised when wrong shapes for node_coords
      or adjacency_matrix are given.
      """
      kwargs = {"display_mode": "x"}
      node_coords = np.arange(2 * 3).reshape((2, 3))
      adjacency_matrix = np.array([[1.0, 2.0], [2.0, 1.0]])
      with pytest.raises(
          ValueError,
          match=r"supposed to have shape \(n, n\).+\(1L?, 2L?\)",
      ):
          plot_connectome(
              adjacency_matrix[:1, :], node_coords, **kwargs
          )
  
      with pytest.raises(
          ValueError, match=r"shape \(2L?, 3L?\).+\(2L?,\)"
      ):
          plot_connectome(adjacency_matrix, node_coords[:, 2], **kwargs)
  
      wrong_adjacency_matrix = np.zeros((3, 3))
      with pytest.raises(
          ValueError,
          match=r"Shape mismatch.+\(3L?, 3L?\).+\(2L?, 3L?\)",
      ):
          plot_connectome(wrong_adjacency_matrix, node_coords, **kwargs)
  
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 21 for calling a global function with example usage: test_plot_connectome_wrong_shapes() without return types