code: def test_stamp_self_join_with_isconstant(T_A, T_B):
      m = 3
      zone = int(np.ceil(m / 2))
      isconstant_custom_func = functools.partial(
          naive.isconstant_func_stddev_threshold,
          quantile_threshold=0.05,
      )
  
      ref_mp = naive.stump(
          T_B,
          m,
          exclusion_zone=zone,
          row_wise=True,
          T_A_subseq_isconstant=isconstant_custom_func,
      )
      comp_mp = stamp.stamp(
          T_B,
          T_B,
          m,
          ignore_trivial=True,
          T_A_subseq_isconstant=isconstant_custom_func,
          T_B_subseq_isconstant=isconstant_custom_func,
      )
      naive.replace_inf(ref_mp)
      naive.replace_inf(comp_mp)
      npt.assert_almost_equal(ref_mp[:, :2], comp_mp)
  
file_path: stumpy/tests/test_stamp.py
imports: import functools
  import naive
  import numpy
  import numpy.testing
  import pytest
  from stumpy import core, stamp
label_desc: Use image node_id 10 for calling a global function with example usage: test_stamp_self_join_with_isconstant(T_A, T_B) without return types