def create_exception_cls(name, module, parent=None):
    if not parent:
        parent = Exception
    return subclass_exception(name, parent, module)
Restores the currently installed packages to those snapshotted.
dataset/ETHPy150Open kmike/tornado-slacker/slacker/serialization.py/create_exception_cls--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/linux_virtual_machine.py/BaseLinuxMixin.RestorePackages