code: def extract_bz2(path, folder, log=True):
      maybe_log(path, log)
      with bz2.open(path, "r") as r:
          with open(
              osp.join(folder, ".".join(path.split(".")[:-1])), "wb"
          ) as w:
              w.write(r.read())
  
file_path: AutoGL/autogl/data/extract.py
imports: from __future__ import print_function
  import os.path
  import tarfile
  import zipfile
  import bz2
  import gzip
label_desc: Use image node_id 4 for calling a global function with example usage: extract_bz2(path, folder, log) without return types