code: def test_all_categories(self):
      corpus = get_test_corpus()
      priors, my_corpus = (
          PriorFactory(corpus, starting_count=0, category="hamlet")
          .use_all_categories()
          .build()
      )
      tdf = corpus.get_term_freq_df()
      self.assertEqual(len(priors), len(tdf))
      np.testing.assert_equal(
          priors.values, corpus.get_term_freq_df().sum(axis=1).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 1 for calling the TestPriorFactory obj's underlying member method code with example usage: obj.test_all_categories() without return types