code: def check_topic_model_string_format(term_dict):
      """
      Parameters
      ----------
      term_dict: dict {metadataname: [term1, term2, ....], ...}
  
      Returns
      -------
      None
      """
      if type(term_dict) != dict:
          raise TypeError(
              "Argument for term_dict must be a dict, keyed on strings, and contain a list of strings."
          )
      for k, v in term_dict.items():
          if type(v) != list:
              raise TypeError("Values in term dict must only be lists.")
  
          if sys.version_info[0] == 2:
              if type(k) != str and type(k) != unicode:
                  raise TypeError(
                      "Keys in term dict must be of type str or unicode."
                  )
              for e in v:
                  if type(k) != str and type(k) != unicode:
                      raise TypeError(
                          "Values in term lists must be str or unicode."
                      )
  
          if sys.version_info[0] == 3:
              if type(k) != str:
                  raise TypeError(
                      "Keys in term dict must be of type str."
                  )
              for e in v:
                  if type(e) != str:
                      raise TypeError(
                          "Values in term lists must be str."
                      )
  
imports: import logging
  import sys
  import numpy
  import pandas
  from scipy.stats import rankdata
  from scattertext.PValGetter import get_p_vals
  from scattertext.Scalers import percentile_min, percentile_alphabetical
  from scattertext.ScatterChartData import ScatterChartData
  from scattertext.TermDocMatrixFilter import filter_bigrams_by_pmis, filter_out_unigrams_that_only_occur_in_one_bigram
  from scattertext.termscoring import ScaledFScore
  from scattertext.termscoring.RankDifference import RankDifference
  from scattertext.termscoring.CornerScore import CornerScore
label_desc: Use image node_id 1 for calling a global function with example usage: check_topic_model_string_format(term_dict) without return types