class_docstr: Test case for SentencePieceProcessor
class_docstr_tok: ["Test","case","for","SentencePieceProcessor"]
code: def test_valid_range(self):
      size = self.sp_.piece_size()
      funcs = [
          "IdToPiece",
          "GetScore",
          "IsUnknown",
          "IsControl",
          "IsUnused",
          "IsByte",
          "DecodeIds",
          "DecodeIdsAsSerializedProto",
      ]
      for m in funcs:
          getattr(self.sp_, m)([10, 20, 30])
  
      for m in funcs:
          try:
              getattr(self.sp_, m)([size])
              self.assertTrue(False)
          except:
              self.assertTrue(True)
  
imports: from collections import defaultdict
  import io
  import os
  import pickle
  import sys
  import unittest
  import sentencepiece
label_desc: Use image node_id 16 for calling the TestSentencepieceProcessor obj's underlying member method code with example usage: obj.test_valid_range() without return types