code: def test_get_term_category_frequencies(self):
      df = self.term_cat_freq.get_term_category_frequencies(
          ScatterChartData()
      )
      self.assertEqual(len(df), self.term_cat_freq.get_num_terms())
      self.assertEqual(
          set(df.columns), {"democrat freq", "republican freq"}
      )
      self.assertEqual(df.index.name, "term")
  
file_path: scattertext/scattertext/test/test_termCategoryFrequencies.py
imports: from unittest import TestCase
  import numpy
  import pandas
  from scattertext.ScatterChartData import ScatterChartData
  from scattertext.TermCategoryFrequencies import TermCategoryFrequencies
label_desc: Use image node_id 6 for calling the TestTermCategoryFrequencies obj's underlying member method code with example usage: obj.test_get_term_category_frequencies() without return types