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_transformed_dot_product(self):
      ans = np.log(1.0 + np.exp(-0.7))
      self.assertAlmostEqual(
          transformed_dot_product(self.a, self.b), ans
      )
  
      ans = np.log(1 + np.exp(-1 * (0.5**2 + 0.7**2)))
      self.assertAlmostEqual(
          transformed_dot_product(self.a, 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 5 for calling the LocalDistancesTest obj's underlying member method code with example usage: obj.test_local_transformed_dot_product() without return types