AppOmni Interview Question

Describe a use case for a custom context manager in python