code: def test_permutation_test_H0(numba_conditional):
      """Test that H0 is populated properly during testing."""
      rng = np.random.RandomState(0)
      data = rng.rand(7, 10, 1) - 0.5
      with pytest.warns(RuntimeWarning, match="No clusters found"):
          t, clust, p, h0 = spatio_temporal_cluster_1samp_test(
              data, threshold=100, n_permutations=1024, seed=rng
          )
      assert_equal(len(h0), 0)
  
      for n_permutations in (1024, 65, 64, 63):
          t, clust, p, h0 = spatio_temporal_cluster_1samp_test(
              data,
              threshold=0.1,
              n_permutations=n_permutations,
              seed=rng,
          )
          assert_equal(len(h0), min(n_permutations, 64))
          assert isinstance(clust[0], tuple)  # sets of indices
      for tail, thresh in zip((-1, 0, 1), (-0.1, 0.1, 0.1)):
          t, clust, p, h0 = spatio_temporal_cluster_1samp_test(
              data,
              threshold=thresh,
              seed=rng,
              tail=tail,
              out_type="mask",
          )
          assert isinstance(clust[0], np.ndarray)  # bool mask
          # same as "128 if tail else 64"
          assert_equal(len(h0), 2 ** (7 - (tail == 0)))
  
imports: import os
  from functools import partial
  import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_array_almost_equal, assert_array_equal, assert_equal
  from scipy import linalg, sparse, stats
  from mne import MixedSourceEstimate, SourceEstimate, SourceSpaces, VolSourceEstimate
  from mne.stats import combine_adjacency, ttest_ind_no_p
  from mne.stats.cluster_level import f_oneway, permutation_cluster_1samp_test, permutation_cluster_test, spatio_temporal_cluster_1samp_test, spatio_temporal_cluster_test, summarize_clusters_stc, ttest_1samp_no_p
  from mne.utils import _record_warnings, catch_logging
label_desc: Use image node_id 14 for calling a global function with example usage: test_permutation_test_H0(numba_conditional) without return types