code: def test_stumpi_identical_subsequence_self_join():
      m = 3
      zone = int(np.ceil(m / 4))
  
      seed = np.random.randint(100000)
      np.random.seed(seed)
  
      identical = np.random.rand(8)
      T = np.random.rand(20)
      T[1 : 1 + identical.shape[0]] = identical
      T[11 : 11 + identical.shape[0]] = identical
      stream = stumpi(T, m, egress=False)
      for i in range(34):
          t = np.random.rand()
          stream.update(t)
  
      comp_P = stream.P_
      # comp_I = stream.I_
  
      ref_mp = naive.stump(
          stream.T_, m, exclusion_zone=zone, row_wise=True
      )
      ref_P = ref_mp[:, 0]
      # ref_I = ref_mp[:, 1]
  
      naive.replace_inf(ref_P)
      naive.replace_inf(comp_P)
  
      npt.assert_almost_equal(
          ref_P, comp_P, decimal=config.STUMPY_TEST_PRECISION
      )
      # npt.assert_almost_equal(ref_I, comp_I)
  
      np.random.seed(seed)
      identical = np.random.rand(8)
      T = np.random.rand(20)
      T[1 : 1 + identical.shape[0]] = identical
      T[11 : 11 + identical.shape[0]] = identical
      T = pd.Series(T)
      stream = stumpi(T, m, egress=False)
      for i in range(34):
          t = np.random.rand()
          stream.update(t)
  
      comp_P = stream.P_
      # comp_I = stream.I_
  
      naive.replace_inf(comp_P)
  
      npt.assert_almost_equal(
          ref_P, comp_P, decimal=config.STUMPY_TEST_PRECISION
      )
  
imports: import functools
  import naive
  import numpy
  import numpy.testing
  import pandas
  import pytest
  from stumpy import config, core, stumpi
label_desc: Use image node_id 10 for calling a global function with example usage: test_stumpi_identical_subsequence_self_join() without return types