code: def ungzip(
      file_path: Union[Path, str],
      extract_path: Optional[Union[Path, str]] = None,
  ) -> None:
      """Simple .gz archive extractor.
  
      Args:
          file_path: Path to the gzip file to be extracted.
          extract_path: Path where the file will be extracted.
  
      """
      chunk_size = 16 * 1024
      file_path = Path(file_path)
      if extract_path is None:
          extract_path = file_path.with_suffix("")
      extract_path = Path(extract_path)
  
      with gzip.open(file_path, "rb") as fin, extract_path.open(
          "wb"
      ) as fout:
          while True:
              block = fin.read(chunk_size)
              if not block:
                  break
              fout.write(block)
  
imports: import collections
  import gzip
  import os
  import secrets
  import shutil
  import tarfile
  import zipfile
  from hashlib import md5
  from itertools import chain
  from logging import getLogger
  from pathlib import Path
  from typing import Any, Generator, Iterable, List, Mapping, Optional, Sequence, Sized, Union, Collection
  from urllib.parse import urlencode, parse_qs, urlsplit, urlunsplit, urlparse
  import numpy
  import requests
  from tqdm import tqdm
label_desc: Use image node_id 6 for calling a global function with example usage: ungzip(file_path, extract_path) without return types