code: def _ttest_finish(df, t):
      """Common code between all 3 t-test functions."""
      # XXX: np.abs -> da.absolute
      # XXX: delayed(distributions.t.sf)
      prob = (
          delayed(distributions.t.sf)(da.absolute(t), df) * 2
      )  # use np.abs to get upper tail
      if t.ndim == 0:
          t = t[()]
  
      return t, prob
  
imports: from __future__ import annotations
  import math
  from collections import namedtuple
  import numpy
  import dask.array
  from dask import delayed
  from dask.array.ufunc import wrap_elemwise
  from dask.utils import derived_from
  from scipy import special
  from scipy.stats import distributions
label_desc: Use image node_id 16 for calling a global function with example usage: _ttest_finish(df, t) and returns: t,  prob