class_docstr: Unit test class for an already-trained nearest neighbors classifier model,
  except predict and classify methods.
class_docstr_tok: ["Unit","test","class","for","an","already-trained","nearest","neighbors","classifier","model",",","except","predict","and","classify","methods","."]
docstr: Check the get method against known answers for each field.
docstr_tok: ["Check","the","get","method","against","known","answers","for","each","field","."]
code: def test_get(self):
      """
      Check the get method against known answers for each field.
      """
  
      correct_fields = {
          "distance": self.distance,
          "num_distance_components": 4,
          "verbose": False,
          "num_features": 7,
          "num_examples": self.n,
          "target": "class",
          "num_classes": 3,
      }
  
      for field, ans in correct_fields.items():
          self.assertEqual(
              self.model._get(field), ans, "{} failed".format(field)
          )
  
      self.assertGreater(self.model.training_time, 0)
      self.assertGreater(self.model.num_unpacked_features, self.n)
      self.assertItemsEqual(
          self.model.features,
          [
              "int0",
              "int1",
              "float0",
              "float1",
              "array0",
              "str0",
              "dict0",
          ],
      )
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import unittest
  import copy
  import array
  import numpy
  import turicreate
  from .None import util
  from turicreate.util import _assert_sframe_equal
  from turicreate.toolkits._main import ToolkitError
  import sys
label_desc: Use image node_id 3 for calling the KnnClassifierModelTest obj's underlying member method code with example usage: obj.test_get() without return types