code: def _get_lexicon_df_from_topic_model(self, topic_model):
      return (
          pd.DataFrame(
              pd.Series(topic_model).apply(pd.Series).reset_index()
          )
          .melt(id_vars=["index"])[["index", "value"]]
          .rename(columns={"index": "cat", "value": "term"})
          .set_index("term")
      )
  
imports: from abc import ABC, abstractmethod
  from collections import Counter
  from functools import reduce
  from re import split
  from sys import version_info
  import pandas
  from flashtext import KeywordProcessor
  from scattertext.ScatterChart import check_topic_model_string_format
  from scattertext.features.FeatsFromSpacyDoc import FeatsFromSpacyDoc
label_desc: Use image node_id 2 for calling the FeatsFromTopicModelBase obj's underlying member method code with example usage: obj._get_lexicon_df_from_topic_model(topic_model) and returns: pd