code: def test_calculate_squared_distance():
      # This test function raises an error if the distance between a subsequence
      # and another does not satisfy the symmetry property.
      seed = 332
      np.random.seed(seed)
      T = np.random.uniform(-1000.0, 1000.0, [64])
      m = 3
  
      T_subseq_isconstant = core.rolling_isconstant(T, m)
      M_T, Σ_T = core.compute_mean_std(T, m)
  
      n = len(T)
      k = n - m + 1
      for i in range(k):
          for j in range(k):
              QT_i = core._sliding_dot_product(T[i : i + m], T)
              dist_ij = core._calculate_squared_distance(
                  m,
                  QT_i[j],
                  M_T[i],
                  Σ_T[i],
                  M_T[j],
                  Σ_T[j],
                  T_subseq_isconstant[i],
                  T_subseq_isconstant[j],
              )
  
              QT_j = core._sliding_dot_product(T[j : j + m], T)
              dist_ji = core._calculate_squared_distance(
                  m,
                  QT_j[i],
                  M_T[j],
                  Σ_T[j],
                  M_T[i],
                  Σ_T[i],
                  T_subseq_isconstant[j],
                  T_subseq_isconstant[i],
              )
  
              comp = dist_ij - dist_ji
              ref = 0.0
  
              npt.assert_almost_equal(ref, comp, decimal=14)
  
file_path: stumpy/tests/test_precision.py
imports: import functools
  from unittest.mock import patch
  import naive
  import numpy
  import numpy.testing
  import pytest
  from numba import cuda
  import stumpy
  from stumpy import config, core
label_desc: Use image node_id 3 for calling a global function with example usage: test_calculate_squared_distance() without return types