Asserts that after the given code block is ran, no stages are left over that were created by the given materializer.
Asserts that after the given code block is ran, no stages are left over that were created by the given materializer.
This assertion is useful to check that all of the stages have terminated successfully.