code: def test_sentencepiece_tokenizer(self):
      tokenizer = BertJapaneseTokenizer.from_pretrained(
          "nlp-waseda/roberta-base-japanese-with-auto-jumanpp"
      )
      subword_tokenizer = tokenizer.subword_tokenizer
  
      tokens = subword_tokenizer.tokenize(
          "国境 の 長い トンネル を 抜ける と 雪国 であった 。"
      )
      self.assertListEqual(
          tokens,
          [
              "▁国境",
              "▁の",
              "▁長い",
              "▁トンネル",
              "▁を",
              "▁抜ける",
              "▁と",
              "▁雪",
              "国",
              "▁であった",
              "▁。",
          ],
      )
  
      tokens = subword_tokenizer.tokenize("こんばんは こんばん にち は こんにちは")
      self.assertListEqual(
          tokens,
          ["▁こん", "ばん", "は", "▁こん", "ばん", "▁に", "ち", "▁は", "▁こんにちは"],
      )
  
imports: import os
  import pickle
  import unittest
  from transformers import AutoTokenizer
  from transformers.models.bert.tokenization_bert import BertTokenizer
  from transformers.models.bert_japanese.tokenization_bert_japanese import VOCAB_FILES_NAMES, BertJapaneseTokenizer, CharacterTokenizer, JumanppTokenizer, MecabTokenizer, SudachiTokenizer, WordpieceTokenizer
  from transformers.testing_utils import custom_tokenizers, require_jumanpp, require_sudachi
  from ...test_tokenization_common import TokenizerTesterMixin
label_desc: Use image node_id 29 for calling the BertJapaneseTokenizationTest obj's underlying member method code with example usage: obj.test_sentencepiece_tokenizer() without return types