def extract_packages_archive(self):
        if not os.path.exists("packages.tar"):
            return

        tar = tarfile.open("packages.tar")
        for tarinfo in tar:
            tar.extract(tarinfo)
        tar.close()
        if '' not in sys.path:
            sys.path.insert(0, '')
dataset/ETHPy150Open spotify/luigi/luigi/mrrunner.py/Runner.extract_packages_archive/original