code: def test_scraamp_constant_subsequence_self_join(percentages):
      T = np.concatenate(
          (np.zeros(20, dtype=np.float64), np.ones(5, dtype=np.float64))
      )
  
      m = 3
      zone = int(np.ceil(m / 4))
  
      for percentage in percentages:
          seed = np.random.randint(100000)
  
          np.random.seed(seed)
          ref_P, _, _, _ = naive.scraamp(
              T, m, T, percentage, zone, False, None
          )
  
          np.random.seed(seed)
          approx = scraamp(
              T,
              m,
              ignore_trivial=True,
              percentage=percentage,
              pre_scraamp=False,
          )
          approx.update()
          comp_P = approx.P_
          # comp_I = approx.I_
          # comp_left_I = approx.left_I_
          # comp_right_I = approx.right_I_
  
          naive.replace_inf(ref_P)
          naive.replace_inf(comp_P)
  
          npt.assert_almost_equal(ref_P, comp_P)
  
imports: import naive
  import numpy
  import numpy.testing
  import pytest
  from stumpy import aamp, config, scraamp
  from stumpy.scraamp import prescraamp
label_desc: Use image node_id 19 for calling a global function with example usage: test_scraamp_constant_subsequence_self_join(percentages) without return types