docstr: Check the correctness of the composite distance computation utility.
docstr_tok: ["Check","the","correctness","of","the","composite","distance","computation","utility","."]
code: def test_composite_dist_compute(self):
      """
      Check the correctness of the composite distance computation utility.
      """
  
      ## Check that d(x, x) = 0
      d = tc.distances.compute_composite_distance(
          self.dist, self.x, self.x
      )
      self.assertAlmostEqual(d, 0.0)
  
      d = tc.distances.compute_composite_distance(
          self.dist, self.y, self.y
      )
      self.assertAlmostEqual(d, 0.0)
  
      ## Check the distance between two data points against the hard-coded
      #  answer.
      d = tc.distances.compute_composite_distance(
          self.dist, self.x, self.y
      )
      self.assertAlmostEqual(d, 30.29165739, places=5)
  
      ## Check the distance against the nearest neighbors toolkit
      sf = tc.SFrame([self.x, self.y]).unpack(
          "X1", column_name_prefix=""
      )
      m = tc.nearest_neighbors.create(
          sf, distance=self.dist, verbose=False
      )
      knn = m.query(sf[:1], k=2, verbose=False)
      self.assertAlmostEqual(d, knn["distance"][1], places=5)
  
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 DistanceUtilsTest obj's underlying member method code with example usage: obj.test_composite_dist_compute() without return types