code: def test_corpus_token_counts_split_on_newlines(self):
      token_counts = tokenizer.corpus_token_counts(
          self.corpus_path, corpus_max_lines=0, split_on_newlines=True
      )
  
      expected = {
          "'": 2,
          ".": 2,
          ". ": 1,
          "... ": 1,
          "Groucho": 1,
          "Marx": 1,
          "Mitch": 1,
          "Hedberg": 1,
          "I": 3,
          "in": 2,
          "my": 2,
          "pajamas": 2,
      }
      self.assertDictContainsSubset(expected, token_counts)
      self.assertNotIn(".\n\n", token_counts)
      self.assertNotIn("\n", token_counts)
  
imports: import os
  import random
  import six
  from six.moves import range
  import tensorflow.compat.v1
  from trax.data import tokenizer
label_desc: Use image node_id 2 for calling the TestTokenCounts obj's underlying member method code with example usage: obj.test_corpus_token_counts_split_on_newlines() without return types