class_docstr: Test case for SentencePieceProcessor
class_docstr_tok: ["Test","case","for","SentencePieceProcessor"]
code: def test_ja_load(self):
      self.assertEqual(8000, self.jasp_.GetPieceSize())
      self.assertEqual(0, self.jasp_.PieceToId("<unk>"))
      self.assertEqual(1, self.jasp_.PieceToId("<s>"))
      self.assertEqual(2, self.jasp_.PieceToId("</s>"))
      self.assertEqual("<unk>", self.jasp_.IdToPiece(0))
      self.assertEqual("<s>", self.jasp_.IdToPiece(1))
      self.assertEqual("</s>", self.jasp_.IdToPiece(2))
      for i in range(self.jasp_.GetPieceSize()):
          piece = self.jasp_.IdToPiece(i)
          self.assertEqual(i, self.jasp_.PieceToId(piece))
  
      self.assertEqual(8000, self.jasp_.get_piece_size())
      self.assertEqual(0, self.jasp_.piece_to_id("<unk>"))
      self.assertEqual(1, self.jasp_.piece_to_id("<s>"))
      self.assertEqual(2, self.jasp_.piece_to_id("</s>"))
      self.assertEqual("<unk>", self.jasp_.id_to_piece(0))
      self.assertEqual("<s>", self.jasp_.id_to_piece(1))
      self.assertEqual("</s>", self.jasp_.id_to_piece(2))
      for i in range(self.jasp_.get_piece_size()):
          piece = self.jasp_.id_to_piece(i)
          self.assertEqual(i, self.jasp_.piece_to_id(piece))
  
imports: from collections import defaultdict
  import io
  import os
  import pickle
  import sys
  import unittest
  import sentencepiece
label_desc: Use image node_id 4 for calling the TestSentencepieceProcessor obj's underlying member method code with example usage: obj.test_ja_load() without return types