code: def verify_decode_no_vocab_raise(tokenizer):
      # When the vocab is not attached, should raise ValueError
      for sentences in [EN_SAMPLES[0], EN_SAMPLES]:
          with pytest.raises(ValueError):
              tokenizer.encode(sentences, int)
      with pytest.raises(ValueError):
          tokenizer.decode([0])
      with pytest.raises(ValueError):
          tokenizer.decode([[0], [1]])
  
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 10 for calling a global function with example usage: verify_decode_no_vocab_raise(tokenizer) without return types