class_docstr: Unit test for the distances computed in this script.
class_docstr_tok: ["Unit","test","for","the","distances","computed","in","this","script","."]
code: def test_local_squared_euclidean(self):
      self.assertAlmostEqual(squared_euclidean(self.a, self.a), 0)
  
      ans = (0.5) ** 2 + (1.0 - 0.7) ** 2 + (0.1) ** 2 + (0.5) ** 2
      self.assertAlmostEqual(squared_euclidean(self.a, self.b), ans)
  
      ans = (0.5) ** 2 + (0.7) ** 2
      self.assertAlmostEqual(squared_euclidean(self.a, {}), ans)
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import copy
  import unittest
  import numpy
  import turicreate
  from turicreate.toolkits._main import ToolkitError
  from collections import Counter
  import sys
label_desc: Use image node_id 7 for calling the LocalDistancesTest obj's underlying member method code with example usage: obj.test_local_squared_euclidean() without return types