code: def _get_ttest_ci(ttest):
      # get a function that returns the CI bounds of provided `ttest`
      def ttest_ci(*args, **kwargs):
          res = ttest(*args, **kwargs)
          return res.confidence_interval()
  
      return ttest_ci
  
imports: from itertools import product, combinations_with_replacement, permutations
  import re
  import pickle
  import pytest
  import numpy
  from numpy.testing import assert_allclose, assert_equal, suppress_warnings
  from scipy import stats
  from scipy.stats import norm
  from scipy.stats._axis_nan_policy import _masked_arrays_2_sentinel_arrays
  from scipy._lib._util import AxisError
label_desc: Use image node_id 2 for calling a global function with example usage: _get_ttest_ci(ttest) and returns: ttest_ci, res