def cleanup(logger, *args):
    for obj in args:
        if obj is not None and hasattr(obj, 'cleanup'):
            try:
                obj.cleanup()
            except NotImplementedError:
                pass
            except Exception:
                logger.exception("Unable to cleanup %s object", obj)
Environment's cleanup routine.
dataset/ETHPy150Open F-Secure/see/see/environment.py/cleanup