code: def test_get_cohens_d_scores(self):
      corpus = build_hamlet_jz_corpus()
      np.testing.assert_almost_equal(
          CohensD(corpus)
          .set_term_ranker(OncePerDocFrequencyRanker)
          .set_categories("hamlet")
          .get_scores()[:5],
          [-0.2303607, 0.8838835, 0.8838835, 1.4028612, 0.8838835],
      )
  
file_path: scattertext/scattertext/test/test_cohensD.py
imports: from unittest import TestCase
  import numpy
  from scattertext import OncePerDocFrequencyRanker
  from scattertext.termscoring.CohensD import CohensD, HedgesR
  from scattertext.test.test_termDocMatrixFactory import build_hamlet_jz_corpus_with_meta, build_hamlet_jz_corpus
label_desc: Use image node_id 1 for calling the TestCohensD obj's underlying member method code with example usage: obj.test_get_cohens_d_scores() without return types