code: def test_get_general_term_frequencies(self):
      corpus = get_test_corpus()
      fact = (
          PriorFactory(
              corpus,
              category="hamlet",
              not_categories=["swift"],
              starting_count=0,
          )
          .use_general_term_frequencies()
          .use_all_categories()
      )
      priors, clean_corpus = fact.build()
  
      expected_prior = (
          pd.merge(
              corpus.get_term_doc_count_df(),
              corpus.get_term_and_background_counts()[["background"]],
              left_index=True,
              right_index=True,
              how="left",
          )
          .fillna(0.0)
          .sum(axis=1)
      )
  
      np.testing.assert_allclose(priors.values, expected_prior.values)
  
file_path: scattertext/scattertext/test/test_PriorFactory.py
imports: from unittest import TestCase
  import numpy
  import pandas
  from scattertext import LogOddsRatioInformativeDirichletPrior
  from scattertext.PriorFactory import PriorFactory
  from scattertext.test.test_semioticSquare import get_test_corpus
label_desc: Use image node_id 3 for calling the TestPriorFactory obj's underlying member method code with example usage: obj.test_get_general_term_frequencies() without return types