class_docstr: Class containing unit tests for nltk.tgrep.
class_docstr_tok: ["Class","containing","unit","tests","for","nltk.tgrep","."]
docstr: Test that tokenization handles bytes and strs the same way.
docstr_tok: ["Test","that","tokenization","handles","bytes","and","strs","the","same","way","."]
code: def test_tokenize_encoding(self):
      """
      Test that tokenization handles bytes and strs the same way.
      """
      self.assertEqual(
          tgrep.tgrep_tokenize(
              b"A .. (B !< C . D) | ![<< (E , F) $ G]"
          ),
          tgrep.tgrep_tokenize("A .. (B !< C . D) | ![<< (E , F) $ G]"),
      )
  
imports: import unittest
  from nltk import tgrep
  from nltk.tree import ParentedTree
label_desc: Use image node_id 2 for calling the TestSequenceFunctions obj's underlying member method code with example usage: obj.test_tokenize_encoding() without return types