code: def test_massDistanceProfile_self(self):
      outcome = (
          np.array(
              [
                  0.0,
                  2.828,
                  np.inf,
                  np.inf,
                  np.inf,
                  np.inf,
                  np.inf,
                  2.828,
                  0.0,
              ]
          ),
          np.array([4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0]),
      )
  
      b = np.array(
          [0.0, 1.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0]
      )
  
      assert (
          np.round(massDistanceProfile(b, 4, 4), 3) == outcome
      ).all()
  
      # Need to confirm that we're not updating the original variable via shared memory
      assert (
          b
          == np.array(
              [
                  0.0,
                  1.0,
                  1.0,
                  0.0,
                  0.0,
                  1.0,
                  1.0,
                  0.0,
                  0.0,
                  1.0,
                  1.0,
                  0.0,
              ]
          )
      ).all()
  
file_path: matrixprofile-ts/tests/test_distanceProfile.py
imports: from matrixprofile.distanceProfile import *
  import numpy
  import pytest
label_desc: Use image node_id 3 for calling the TestClass obj's underlying member method code with example usage: obj.test_massDistanceProfile_self() without return types