code: def simulated_pvalue(t, simu_t):
      return 1 - np.searchsorted(simu_t, t) / float(np.size(simu_t))
  
imports: import numpy
  import scipy.stats
  from nibabel import Nifti1Image
  from nibabel.affines import apply_affine
  from ..algorithms.graph.field import field_from_graph_and_data
  from ..algorithms.graph.graph import wgraph_from_3d_grid
  from ..algorithms.statistics import empirical_pvalue
  from ..io.nibcompat import get_affine
  from .glm import glm
  from .group.permutation_test import permutation_test_onesample, permutation_test_twosample
label_desc: Use image node_id 2 for calling a global function with example usage: simulated_pvalue(t, simu_t) and returns: unknown