code: def verify_decode_subword_nmt(
      tokenizer, all_sentences, gt_int_decode, gt_str_decode
  ):
      for sentences, case_gt_int_decode, case_gt_str_decode in [
          (all_sentences[0], gt_int_decode[0], gt_str_decode[0]),
          (all_sentences, gt_int_decode, gt_str_decode),
      ]:
          assert (
              tokenizer.decode(tokenizer.encode(sentences, str))
              == case_gt_str_decode
          )
          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 8 for calling a global function with example usage: verify_decode_subword_nmt(tokenizer, all_sentences, gt_int_decode, gt_str_decode) without return types