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_weighted_jaccard(self):
      ans = 1 - (0.0 + 0.7 + 0.0 + 0.0) / (0.5 + 1.0 + 0.1 + 0.5)
      self.assertAlmostEqual(weighted_jaccard(self.a, self.b), ans)
  
      self.assertAlmostEqual(weighted_jaccard(self.a, {}), 1)
      self.assertAlmostEqual(weighted_jaccard(self.a, self.a), 0)
  
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 3 for calling the LocalDistancesTest obj's underlying member method code with example usage: obj.test_local_weighted_jaccard() without return types