code: def ungzip_file(file: str, to: str, filename: str):
      import gzip
  
      g_file = gzip.GzipFile(file)
      with open(os.path.join(to, filename), "wb+") as f:
          f.write(g_file.read())
      g_file.close()
  
imports: import os
  import re
  import shutil
  import tempfile
  from pathlib import Path
  from urllib.parse import urlparse
  import requests
  from requests import HTTPError
  from fastNLP.core.log import logger
  from rich.progress import Progress, BarColumn, DownloadColumn, TimeRemainingColumn, TimeElapsedColumn
label_desc: Use image node_id 12 for calling a global function with example usage: ungzip_file(file, to, filename) without return types