code: def test_terms_to_include(self):
      tdm = build_hamlet_jz_term_doc_mat()
      terms_to_include = list(
          sorted(
              [
                  "both worlds",
                  "thou",
                  "the",
                  "of",
                  "st",
                  "returned",
                  "best",
              ]
          )
      )
      j = ScatterChart(
          term_doc_matrix=tdm,
          minimum_term_frequency=0,
          terms_to_include=terms_to_include,
      ).to_dict("hamlet", "HAMLET", "NOT HAMLET")
      self.assertEqual(
          list(sorted(t["term"] for t in j["data"])), terms_to_include
      )
  
imports: import sys
  from unittest import TestCase
  import numpy
  import pandas
  from scattertext import LogOddsRatioUninformativeDirichletPrior, scale
  from scattertext import ScatterChart
  from scattertext.ScatterChart import CoordinatesNotRightException, TermDocMatrixHasNoMetadataException, NeedToInjectCoordinatesException
  from scattertext.test.test_corpusFromPandasWithoutCategories import get_term_doc_matrix_without_categories
  from scattertext.test.test_semioticSquare import get_test_corpus
  from scattertext.test.test_termDocMatrixFactory import build_hamlet_jz_term_doc_mat, build_hamlet_jz_corpus_with_meta
label_desc: Use image node_id 8 for calling the TestScatterChart obj's underlying member method code with example usage: obj.test_terms_to_include() without return types