code: def test_t5_get_pretrained(ctx):
      with tempfile.TemporaryDirectory() as root, ctx:
          cfg, tokenizer, backbone_params_path, _ = get_pretrained_t5(
              "google_t5_small"
          )
          assert cfg.MODEL.vocab_size >= len(tokenizer._sp_model)
          t5_model = T5Model.from_cfg(cfg)
          t5_model.load_parameters(backbone_params_path)
          t5_model.hybridize()
          t5_inference_model = T5Inference(t5_model)
          t5_inference_model.hybridize()
  
file_path: gluon-nlp/tests/test_models_t5.py
imports: import pytest
  import tempfile
  import mxnet
  from mxnet import np, npx
  from mxnet.gluon import nn, HybridBlock
  from gluonnlp.models.t5 import T5Model, T5Inference, t5_cfg_reg, list_pretrained_t5, get_pretrained_t5
  from gluonnlp.utils.testing import verify_nmt_model, verify_nmt_inference
label_desc: Use image node_id 4 for calling a global function with example usage: test_t5_get_pretrained(ctx) without return types