code: def test_set_associations(self):
      associations = turicreate.SFrame()
      associations["word"] = ["1,1", "1,2", "1,3"]
      associations["topic"] = [0, 0, 0]
      m = topic_model.create(self.docs, associations=associations)
  
      # In this context, the "words" '1,1', '1,2', '1,3' should be
      # the first three words in the vocabulary.
      self.assertEqual(
          list(m.topics["vocabulary"].head(3)), ["1,1", "1,2", "1,3"]
      )
  
      # For each of these words, the probability of topic 0 should
      # be largest.
      probs = m.topics["topic_probabilities"]
      largest = probs.apply(lambda x: np.argmax(x))
      self.assertEqual(list(largest.head(3)), [0, 0, 0])
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import os
  import tempfile
  import shutil
  import unittest
  import turicreate
  from turicreate.toolkits._main import ToolkitError
  from turicreate.toolkits.topic_model import topic_model
  from turicreate.toolkits.text_analytics import parse_sparse
  from turicreate.toolkits.text_analytics import parse_docword
  from turicreate.toolkits.topic_model import perplexity
  from .None import util
  import time
  import random
  import numpy
  import itertools
label_desc: Use image node_id 5 for calling the BasicTest obj's underlying member method code with example usage: obj.test_set_associations() without return types