code: def verify_decode_spm(
      tokenizer, all_sentences, gt_int_decode_sentences
  ):
      for sentences, case_gt_int_decode in [
          (all_sentences[0], gt_int_decode_sentences[0]),
          (all_sentences, gt_int_decode_sentences),
      ]:
          if isinstance(sentences, str):
              gt_str_decode_sentences = sentences
              if tokenizer.lowercase:
                  gt_str_decode_sentences = (
                      gt_str_decode_sentences.lower()
                  )
              gt_str_decode_sentences = unicodedata.normalize(
                  "NFKC", gt_str_decode_sentences
              )
          elif isinstance(sentences, list):
              gt_str_decode_sentences = []
              for ele in sentences:
                  ele_gt_decode = ele
                  if tokenizer.lowercase:
                      ele_gt_decode = ele_gt_decode.lower()
                  ele_gt_decode = unicodedata.normalize(
                      "NFKC", ele_gt_decode
                  )
                  gt_str_decode_sentences.append(ele_gt_decode)
          else:
              raise NotImplementedError
          assert (
              tokenizer.decode(tokenizer.encode(sentences, str))
              == gt_str_decode_sentences
          )
          assert (
              tokenizer.decode(tokenizer.encode(sentences, int))
              == case_gt_int_decode
          )
  
imports: import pytest
  import random
  import collections
  import pickle
  from uuid import uuid4
  import os
  import unicodedata
  import tempfile
  from pkg_resources import parse_version
  import gluonnlp
  from gluonnlp.data.tokenizers import WhitespaceTokenizer, MosesTokenizer, JiebaTokenizer, SpacyTokenizer, SubwordNMTTokenizer, YTTMTokenizer, SentencepieceTokenizer, HuggingFaceBPETokenizer, HuggingFaceByteBPETokenizer, HuggingFaceWordPieceTokenizer, HuggingFaceTokenizer
  from gluonnlp.base import get_repo_url
  from gluonnlp.data import Vocab, load_vocab
  from gluonnlp.utils.misc import download
  from gluonnlp.models.t5 import T5Tokenizer
label_desc: Use image node_id 7 for calling a global function with example usage: verify_decode_spm(tokenizer, all_sentences, gt_int_decode_sentences) without return types