code: def test_mass():
      Q = np.random.rand(10)
      T = np.random.rand(20)
      ref = stumpy.core.mass_absolute(Q, T)
      comp = stumpy.core.mass(Q, T, normalize=False)
      npt.assert_almost_equal(ref, comp)
  
      Q = np.random.rand(10)
      T = np.random.rand(20)
      T, T_subseq_isfinite = stumpy.core.preprocess_non_normalized(
          T, 10
      )
      T_squared = np.sum(
          stumpy.core.rolling_window(T * T, Q.shape[0]), axis=-1
      )
      ref = stumpy.core.mass_absolute(Q, T)
      comp = stumpy.core.mass(
          Q, T, M_T=T_subseq_isfinite, normalize=False
      )
      npt.assert_almost_equal(ref, comp)
      comp = stumpy.core.mass(Q, T, Σ_T=T_squared, normalize=False)
      npt.assert_almost_equal(ref, comp)
      comp = stumpy.core.mass(
          Q, T, M_T=T_subseq_isfinite, Σ_T=T_squared, normalize=False
      )
      npt.assert_almost_equal(ref, comp)
  
imports: import naive
  import numpy
  import numpy.testing
  from dask.distributed import Client, LocalCluster
  from numba import cuda
  import stumpy
  from stumpy.maamp import maamp_multi_distance_profile
  from stumpy.mstump import multi_distance_profile
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_mass() without return types