def METHOD_NAME(archive_path, output_dir):
    extension = os.path.splitext(archive_path)[1]
    if extension == '.zip':
        _UnzipArchiveTo(archive_path, output_dir)
    else:
        _UntarArchiveTo(archive_path, output_dir)