code: def extract_gz(path: str, folder: str, log: bool = True) -> None:
      r"""Extracts a gz archive to a specific folder.
  
      Args:
          path (str): The path to the tar archive.
          folder (str): The folder.
          log (bool, optional): If :obj:`False`, will not print anything to the
              console. (default: :obj:`True`)
      """
      maybe_log(path, log)
      path = osp.abspath(path)
      with gzip.open(path, "r") as r:
          with open(
              osp.join(folder, ".".join(path.split(".")[:-1])), "wb"
          ) as w:
              w.write(r.read())
  
file_path: pytorch_geometric/torch_geometric/data/extract.py
imports: import bz2
  import gzip
  import os.path
  import sys
  import tarfile
  import zipfile
label_desc: Use image node_id 5 for calling a global function with example usage: extract_gz(path, folder, log) without return types