code: def test_text_to_tokens(self, test_data_dir):
      tokenizer = SentencePieceTokenizer(
          test_data_dir + self.model_name
      )
  
      # <cls> is user_defined_symbol in the test tokenizer model
      # <unk>, <sep>, <s>, and </s> are control symbols
      text = "<cls> a b c <sep> e f g h i </s>"
      tokens = tokenizer.text_to_tokens(text)
  
      assert tokens.count("<cls>") == 1
      assert tokens.count("<sep>") == 0
      assert tokens.count("</s>") == 0
  
imports: import pytest
  from nemo.collections.common.tokenizers.sentencepiece_tokenizer import SentencePieceTokenizer
  from nemo.collections.common.tokenizers.youtokentome_tokenizer import YouTokenToMeTokenizer
label_desc: Use image node_id 1 for calling the TestSentencePieceTokenizer obj's underlying member method code with example usage: obj.test_text_to_tokens(test_data_dir) without return types