import zipfile def unzip_file(file_path, extract_path): with zipfile.ZipFile(file_path, 'r') as zip_ref: zip_ref.extractall(extract_path)