class_docstr: Test case for SentencePieceProcessor
class_docstr_tok: ["Test","case","for","SentencePieceProcessor"]
code: def test_pickle(self):
      with open("sp.pickle", "wb") as f:
          pickle.dump(self.sp_, f)
  
      id1 = self.sp_.encode("hello world.", out_type=int)
  
      with open("sp.pickle", "rb") as f:
          sp = pickle.load(f)
  
      id2 = sp.encode("hello world.", out_type=int)
  
      self.assertEqual(id1, id2)
  
imports: from collections import defaultdict
  import io
  import os
  import pickle
  import sys
  import unittest
  import sentencepiece
label_desc: Use image node_id 18 for calling the TestSentencepieceProcessor obj's underlying member method code with example usage: obj.test_pickle() without return types