code: def appr(x, rel=False, thresh=1e-3):
      """
      Assert that two numbers (or two sets of numbers) are equal to each other
      within some tolerance.
      """
      if rel:
          return approx(x, rel=thresh)
      else:
          return approx(x, abs=thresh)
  
file_path: pingouin/pingouin/tests/test_bayesian.py
imports: import numpy
  from unittest import TestCase
  from scipy.stats import pearsonr
  from pingouin.parametric import ttest
  from pingouin.bayesian import bayesfactor_ttest, bayesfactor_binom
  from pingouin.bayesian import bayesfactor_pearson
  from pytest import approx
label_desc: Use image node_id 1 for calling a global function with example usage: appr(x, rel, thresh) and returns: approx, approx