code: def test_mahalanobis_errors():
      effect = np.zeros((1, 2, 3))
      cov = np.zeros((3, 3, 3))
  
      with pytest.raises(
          ValueError,
          match="Inconsistent shape for effect and covariance",
      ):
          multiple_mahalanobis(effect, cov)
  
      cov = np.zeros((1, 2, 3))
  
      with pytest.raises(
          ValueError, match="Inconsistent shape for covariance"
      ):
          multiple_mahalanobis(effect, cov)
  
imports: import numpy
  import pytest
  import scipy.linalg
  import scipy.stats
  from numpy.testing import assert_almost_equal, assert_array_almost_equal, assert_array_equal
  from scipy.stats import norm
  from nilearn._utils.data_gen import generate_fake_fmri
  from nilearn.glm._utils import full_rank, multiple_fast_inverse, multiple_mahalanobis, pad_contrast, positive_reciprocal, z_score
  from nilearn.glm.first_level import FirstLevelModel, make_first_level_design_matrix
  from nilearn.maskers import NiftiMasker
label_desc: Use image node_id 7 for calling a global function with example usage: test_mahalanobis_errors() without return types