class_docstr: Test case for SentencePieceProcessor
class_docstr_tok: ["Test","case","for","SentencePieceProcessor"]
code: def test_override_normalize_spec(self):
      sp = spm.SentencePieceProcessor(
          model_file=os.path.join("test", "test_model.model")
      )
  
      self.assertEqual(
          sp.EncodeAsPieces(" hello  world "),
          ["▁he", "ll", "o", "▁world"],
      )
  
      sp.override_normalizer_spec(add_dummy_prefix=False)
      sp.override_normalizer_spec(remove_extra_whitespaces=False)
      sp.override_normalizer_spec(escape_whitespaces=False)
      self.assertEqual(
          sp.EncodeAsPieces(" hello  world "),
          [" ", "he", "ll", "o", "  ", "w", "or", "l", "d", " "],
      )
  
imports: from collections import defaultdict
  import io
  import os
  import pickle
  import sys
  import unittest
  import sentencepiece
label_desc: Use image node_id 23 for calling the TestSentencepieceProcessor obj's underlying member method code with example usage: obj.test_override_normalize_spec() without return types