code: def __tt(x, p_0, statistic=bs_se):
      """Calculate desired statistic from observable data and a
      given proportional weighting.
  
      Parameters
      ----------
      x : np.ndarray
          Observable data (e.g. from gold standard).
      p_0 : np.ndarray
          Proportional weighting vector (Default: uniform weighting 1/n)
  
      Returns
      -------
      theta_hat : float
          Desired statistic of the observable data.
  
      See Also
      --------
      abc, __tt_dot, __tt_dot_dot
      """
      return statistic(x / p_0)
  
file_path: dipy/dipy/boots/resampling.py
imports: import numpy
  import scipy
  import warnings
label_desc: Use image node_id 6 for calling a global function with example usage: __tt(x, p_0, statistic) and returns: statistic