def METHOD_NAME():
    """We can allow expensive computations to be cancelable
    """
    # Note that if canceled, for loop will terminate prematurely
    # You can use cancel_callback to close files, clean up state, etc
    # if the user cancels the operation.
    def cancel_callback():
        print("Operation canceled - cleaning up!")
    for _ in cancelable_progress(range(100), cancel_callback=cancel_callback):
        np.random.rand(128, 128, 128).mean(0)