code: def setUpClass(self):
      # Create an example containing synthetic data along
      # with fitted models (with default parameters).
      docs = generate_bar_example(num_documents=1000, seed=12345)
      models = []
  
      # Test a model that used CGS
      m = topic_model.create(docs, num_topics=10)
      models.append(m)
  
      # Test a model with many topics
      m = topic_model.create(
          docs, method="cgs", num_topics=100, num_iterations=2
      )
      models.append(m)
      m = topic_model.create(
          docs, method="alias", num_topics=100, num_iterations=2
      )
      models.append(m)
  
      # Test a model serialized after using CGS
      with test_util.TempDirectory() as f:
          m.save(f)
          m2 = turicreate.load_model(f)
  
      models.append(m2)
  
      # Save
      examples["synthetic"] = {"docs": docs, "models": models}
      self.docs = examples["synthetic"]["docs"]
      self.models = examples["synthetic"]["models"]
  
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 1 for calling the BasicTest obj's underlying member method code with example usage: obj.setUpClass() without return types