code: def get_pretrained_mt5(
      model_name: str = "google_mt5_base",
      root: str = get_model_zoo_home_dir(),
      load_backbone: bool = True,
      load_lm: bool = False,
      extra_ids: int = 100,
  ) -> Tuple[CN, MT5Tokenizer, str, str]:
      assert (
          model_name in PRETRAINED_URL
      ), "{} is not found. All available are {}.".format(
          model_name, list_pretrained_mt5()
      )
      cfg_path = PRETRAINED_URL[model_name]["cfg"]
      if isinstance(cfg_path, CN):
          cfg = cfg_path
      else:
          cfg = None
      vocab_path = PRETRAINED_URL[model_name]["vocab"]
      params_path = PRETRAINED_URL[model_name]["params"]
  
      local_paths = dict()
      download_jobs = [("vocab", vocab_path)]
      if cfg is None:
          download_jobs.append(("cfg", cfg_path))
      for key, path in download_jobs:
          local_paths[key] = download(
              url=get_repo_model_zoo_url() + path,
              path=os.path.join(root, path),
              sha1_hash=FILE_STATS[path],
          )
      if load_backbone:
          local_params_path = download(
              url=get_repo_model_zoo_url() + params_path,
              path=os.path.join(root, params_path),
              sha1_hash=FILE_STATS[params_path],
          )
      else:
          local_params_path = None
      # lm model has not been implemented
      local_lm_params_path = None
      tokenizer = MT5Tokenizer(local_paths["vocab"], extra_ids)
      if cfg is None:
          cfg = MT5Model.get_cfg().clone_merge(local_paths["cfg"])
      return cfg, tokenizer, local_params_path, local_lm_params_path
  
imports: import os
  from typing import Tuple
  from mxnet import use_np
  from .base import BACKBONE_REGISTRY
  from ..base import get_model_zoo_home_dir, get_repo_model_zoo_url, get_model_zoo_checksum_dir
  from .t5 import T5Encoder, T5Model, T5Inference, T5Tokenizer
  from ..utils.config import CfgNode
  from ..utils.misc import load_checksum_stats, download
  from ..utils.registry import Registry
label_desc: Use image node_id 7 for calling a global function with example usage: get_pretrained_mt5(model_name, root, load_backbone, load_lm, extra_ids) and returns: cfg,  tokenizer,  local_params_path,  local_lm_params_path