code: def test_stamp_dual_mp_nan_inf(self):
      a = np.array(
          [
              0.0,
              1.0,
              1.0,
              0.0,
              np.nan,
              1.0,
              1.0,
              0.0,
              0.0,
              1.0,
              1.0,
              0.0,
          ]
      )
      b = np.array(
          [
              0.0,
              1.0,
              1.0,
              0.0,
              np.inf,
              1.0,
              1.0,
              0.0,
              0.0,
              1.0,
              1.0,
              0.0,
          ]
      )
      mp_outcome = np.array(
          [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
      )
  
      r = stamp(a, 4, b, sampling=1.0)
  
      assert (r[0] == mp_outcome).all()
  
imports: from matrixprofile.matrixProfile import *
  import numpy
  import pytest
label_desc: Use image node_id 12 for calling the TestClass obj's underlying member method code with example usage: obj.test_stamp_dual_mp_nan_inf() without return types