code: def test_predict_topk(self):
      topk_predictions = self.model.predict_topk(self.data, k=2)
      self.assertEqual(len(topk_predictions), len(self.data) * 2)
      self.assertEqual(3, len(topk_predictions.column_names()))
      for column in ["id", "class", "probability"]:
          self.assertIn(column, topk_predictions.column_names())
  
      topk_predictions = self.model.predict_topk(
          self.data, k=1, output_type="rank"
      )
      self.assertEqual(len(topk_predictions), len(self.data) * 1)
      self.assertEqual(3, len(topk_predictions.column_names()))
      for column in ["id", "class", "rank"]:
          self.assertIn(column, topk_predictions.column_names())
      unique_ranks = topk_predictions["rank"].unique()
      self.assertTrue(len(unique_ranks) == 1)
      self.assertTrue(unique_ranks[0] == 0)
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  from .util import TempDirectory
  from copy import copy
  import math
  from os import mkdir
  import unittest
  import pytest
  import numpy
  import sys
  import turicreate
  from turicreate.toolkits._internal_utils import _raise_error_if_not_sarray
  from turicreate.toolkits._main import ToolkitError
  from turicreate.toolkits._internal_utils import _mac_ver
label_desc: Use image node_id 11 for calling the ClassifierTestTwoClassesStringLabels obj's underlying member method code with example usage: obj.test_predict_topk() without return types