code: def test_stomp_nan_inf_self_join(
      T_A, T_B, substitute_B, substitution_locations
  ):
      m = 3
  
      T_B_sub = T_B.copy()
  
      for substitution_location_B in substitution_locations:
          T_B_sub[:] = T_B[:]
          T_B_sub[substitution_location_B] = substitute_B
  
          zone = int(np.ceil(m / 4))
          ref_mp = naive.stump(
              T_B_sub, m, exclusion_zone=zone, row_wise=True
          )
          comp_mp = stomp._stomp(T_B_sub, m, ignore_trivial=True)
          naive.replace_inf(ref_mp)
          naive.replace_inf(comp_mp)
          npt.assert_almost_equal(ref_mp, comp_mp)
  
file_path: stumpy/tests/test_stomp.py
imports: import naive
  import numpy
  import numpy.testing
  import pytest
  from stumpy import stomp
label_desc: Use image node_id 5 for calling a global function with example usage: test_stomp_nan_inf_self_join(T_A, T_B, substitute_B, substitution_locations) without return types