code: def test_onesample_graph(self):
      data, vardata, XYZ = make_data()
      G = wgraph_from_3d_grid(XYZ.T)
      # rfx calibration
      P = pt.permutation_test_onesample_graph(data, G, ndraws=ndraws)
      c = [(P.random_Tvalues[int(P.ndraws * 0.95)], None)]
      r = np.ones(data.shape[1], int)
      r[data.shape[1] // 2 :] *= 10
      # mfx calibration
      P = pt.permutation_test_onesample_graph(
          data, G, vardata=vardata, stat_id="student_mfx", ndraws=ndraws
      )
      p_values, cluster_results, region_results = P.calibrate(
          nperms=nperms, clusters=c, regions=[r]
      )
  
file_path: nipy/nipy/labs/group/tests/test_permutation_test.py
imports: import unittest
  import numpy
  from numpy.testing import assert_array_equal
  from nipy.algorithms.graph import wgraph_from_3d_grid
  from ..None import permutation_test
label_desc: Use image node_id 2 for calling the test_permutation_test obj's underlying member method code with example usage: obj.test_onesample_graph() without return types