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: Unit test for __repr__, __str__, and model summary methods.
docstr_tok: ["Unit","test","for","__repr__",",","__str__",",","and","model","summary","methods","."]
code: def test_summaries(self):
      """
      Unit test for __repr__, __str__, and model summary methods.
      """
      try:
          ans = str(self.model)
      except:
          assert False, "Model __repr__ failed."
  
      try:
          print(self.model)
      except:
          assert False, "Model print failed."
  
      try:
          self.model.summary()
      except:
          assert False, "Model summary failed."
  
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 4 for calling the KnnClassifierModelTest obj's underlying member method code with example usage: obj.test_summaries() without return types