code: def test_cluster_level_parameters_error_no_masker(
      cluster_level_design,
  ):
      """Test combinations of parameters related to cluster-level inference."""
      target_var, tested_var = cluster_level_design
  
      # threshold is defined, indicating cluster-level inference should be done,
      # but masker is not defined.
      with pytest.raises(ValueError):
          permuted_ols(
              tested_var,
              target_var,
              model_intercept=False,
              two_sided_test=False,
              n_perm=N_PERM,
              random_state=0,
              threshold=0.001,
              tfce=False,
          )
  
imports: import nibabel
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal, assert_array_less, assert_equal
  from scipy import stats
  from nilearn.conftest import _rng
  from nilearn.maskers import NiftiMasker
  from nilearn.mass_univariate import permuted_ols
label_desc: Use image node_id 37 for calling a global function with example usage: test_cluster_level_parameters_error_no_masker(cluster_level_design) without return types