docstr: Returns a list of discovered topics
  Args:
      n_words(int): number of words to use in topic summary
      as_string(bool): If True, each summary is a space-delimited string instead of list of words
      show_counts(bool): If True, returns list of tuples of form (id, topic summary, count).
                         Otherwise, a list of topic summaries.
  Returns:
    List of topic summaries if  show_count is False
    Dictionary where key is topic ID and value is a tuple of form (topic summary, count) if show_count is True
docstr_tok: ["Returns","a","list","of","discovered","topics","Args",":","n_words","(","int",")",":","number","of","words","to","use","in","topic","summary","as_string","(","bool",")",":","If","True",",","each","summary","is","a","space-delimited","string","instead","of","list","of","words","show_counts","(","bool",")",":","If","True",",","returns","list","of","tuples","of","form","(","id",",","topic","summary",",","count",")",".","Otherwise",",","a","list","of","topic","summaries",".","Returns",":","List","of","topic","summaries","if","show_count","is","False","Dictionary","where","key","is","topic","ID","and","value","is","a","tuple","of","form","(","topic","summary",",","count",")","if","show_count","is","True"]
code: def get_topics(self, n_words=10, as_string=True, show_counts=False):
      """
      Returns a list of discovered topics
      Args:
          n_words(int): number of words to use in topic summary
          as_string(bool): If True, each summary is a space-delimited string instead of list of words
          show_counts(bool): If True, returns list of tuples of form (id, topic summary, count).
                             Otherwise, a list of topic summaries.
      Returns:
        List of topic summaries if  show_count is False
        Dictionary where key is topic ID and value is a tuple of form (topic summary, count) if show_count is True
  
      """
      self._check_model()
      feature_names = self.vectorizer.get_feature_names_out()
      topic_summaries = []
      for topic_idx, topic in enumerate(self.model.components_):
          summary = [
              feature_names[i]
              for i in topic.argsort()[: -n_words - 1 : -1]
          ]
          if as_string:
              summary = " ".join(summary)
          topic_summaries.append(summary)
  
      if show_counts:
          self._check_build()
          topic_counts = sorted(
              [
                  (k, topic_summaries[k], len(v))
                  for k, v in self.topic_dict.items()
              ],
              key=lambda kv: kv[-1],
              reverse=True,
          )
          return dict((t[0], t[1:]) for t in topic_counts)
  
      return topic_summaries
  
imports: import time
  from ..None import utils
  from ..imports import *
  from .None import preprocessor
  from .None import textutils
label_desc: Use image node_id 7 for calling the TopicModel obj's underlying member method code with example usage: obj.get_topics(n_words, as_string, show_counts) and returns: topic_summaries, dict