code: def extract_zipfile(zip_path, dst_dir, delete=True):
      files = zipfile.ZipFile(zip_path)
      for file in files.namelist():
          files.extract(file, dst_dir)
      if delete:
          os.remove(zip_path)
  
file_path: mmocr/tools/dataset_converters/common/extract_kaist.py
imports: import argparse
  import os
  import os.path
  import shutil
  import xml.etree.ElementTree
  import zipfile
  from xml.etree.ElementTree import ParseError
label_desc: Use image node_id 2 for calling a global function with example usage: extract_zipfile(zip_path, dst_dir, delete) without return types