def get_pickleable_exception(exc):
    nearest = find_nearest_pickleable_exception(exc)
    if nearest:
        return nearest

    try:
        pickle.dumps(deepcopy(exc))
    except Exception:
        excwrapper = UnpickleableExceptionWrapper(
                        exc.__class__.__module__,
                        exc.__class__.__name__,
                        getattr(exc, "args", []))
        return excwrapper
    return exc
Create a Labelmap volume cloning the current global labelmap with the ROI sphere for visualization purposes
dataset/ETHPy150Open kmike/tornado-slacker/slacker/serialization.py/get_pickleable_exception--crossover with--dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/CIP_LesionModel/CIP_LesionModel.py/CIP_LesionModelLogic.__createLabelmapSphereVolume__