class_docstr: Test case for SentencePieceProcessor
class_docstr_tok: ["Test","case","for","SentencePieceProcessor"]
code: def setUp(self):
      self.sp_ = spm.SentencePieceProcessor()
      self.jasp_ = spm.SentencePieceProcessor()
      self.assertTrue(
          self.sp_.Load(os.path.join("test", "test_model.model"))
      )
      self.assertTrue(
          self.jasp_.Load(os.path.join("test", "test_ja_model.model"))
      )
      with open(os.path.join("test", "test_model.model"), "rb") as f:
          self.assertTrue(self.sp_.LoadFromSerializedProto(f.read()))
      with open(os.path.join("test", "test_ja_model.model"), "rb") as f:
          self.assertTrue(self.jasp_.LoadFromSerializedProto(f.read()))
  
imports: from collections import defaultdict
  import io
  import os
  import pickle
  import sys
  import unittest
  import sentencepiece
label_desc: Use image node_id 1 for calling the TestSentencepieceProcessor obj's underlying member method code with example usage: obj.setUp() without return types