code: def test_multi_categories(self):
      corpus = get_test_corpus()
      j_vs_all = ScatterChartExplorer(
          corpus=corpus, minimum_term_frequency=0
      ).to_dict("hamlet")
      j_vs_swift = ScatterChartExplorer(
          corpus=corpus, minimum_term_frequency=0
      ).to_dict("hamlet", not_categories=["swift"])
      self.assertNotEqual(
          set(j_vs_all["info"]["not_category_internal_names"]),
          set(j_vs_swift["info"]["not_category_internal_names"]),
      )
      self.assertEqual(
          list(j_vs_all["docs"]["labels"]),
          list(j_vs_swift["docs"]["labels"]),
      )
      self.assertEqual(
          list(j_vs_all["docs"]["categories"]),
          list(j_vs_swift["docs"]["categories"]),
      )
  
file_path: scattertext/scattertext/test/test_scatterChartExplorer.py
imports: import random
  from unittest import TestCase
  import numpy
  from scattertext.ScatterChartExplorer import ScatterChartExplorer
  from scattertext.test.test_semioticSquare import get_test_corpus
  from scattertext.test.test_termDocMatrixFactory import build_hamlet_jz_corpus, build_hamlet_jz_corpus_with_meta, build_hamlet_jz_corpus_with_alt_text
label_desc: Use image node_id 4 for calling the TestScatterChartExplorer obj's underlying member method code with example usage: obj.test_multi_categories() without return types