code: def _download_generation_model(path):
      url = f"https://t5-onnx-models.s3.amazonaws.com/{path.name}"
      size = _get_size(url)
  
      req = requests.get(url, allow_redirects=True, stream=True)
  
      # Downloads from S3, reporting progress in bytes to a tqdm progress bar. Units are in bytes. Setting disable to None
      # causes tqdm to check whether the process is attached to a terminal and disable progress bar output if not.
      with tqdm(
          total=size,
          unit="B",
          unit_scale=True,
          desc=str(path.name),
          disable=None,
      ) as t:
          with path.open("wb") as f:
              for chunk in req.iter_content(chunk_size=1024):
                  if chunk:
                      f.write(chunk)
                      t.update(1024)
  
      # Extracts to model directory
      with tarfile.open(path, "r:gz") as archive:
          archive.extractall(path=path.parent)
  
file_path: onnxt5/onnxt5/api.py
imports: from pathlib import Path
  import tarfile
  import os
  import glob
  import requests
  from onnxruntime import InferenceSession
  from tqdm import tqdm
  from transformers import T5Tokenizer
label_desc: Use image node_id 7 for calling a global function with example usage: _download_generation_model(path) without return types