code: def test_threshold_stats_img_errors():
      with pytest.raises(ValueError, match="stat_img not to be None"):
          threshold_stats_img(
              None, None, alpha=0.05, height_control="fdr"
          )
  
      with pytest.raises(ValueError, match="stat_img not to be None"):
          threshold_stats_img(
              None, None, alpha=0.05, height_control="bonferroni"
          )
  
      with pytest.raises(
          ValueError, match="height control should be one of"
      ):
          threshold_stats_img(
              None, None, alpha=0.05, height_control="plop"
          )
  
imports: import numpy
  import pytest
  from nibabel import Nifti1Image
  from numpy.testing import assert_almost_equal, assert_equal
  from scipy.stats import norm
  from nilearn.conftest import _shape_3d_default
  from nilearn.glm import cluster_level_inference, fdr_threshold, threshold_stats_img
  from nilearn.glm.thresholding import _compute_hommel_value
  from nilearn.image import get_data
label_desc: Use image node_id 6 for calling a global function with example usage: test_threshold_stats_img_errors() without return types