def __exit__(self, exc_type, exc_value, traceback):
        """Called upon exiting ``with`` command."""
        if self.seed is not None:
            np.random.set_state(self.startstate)
def __exit__ ( self , exc_type , exc_value , traceback ) : if self . seed is not None : np . random . set_state ( self . startstate )
Called upon exiting ``with`` command.