AppOmni interview question

Describe a use case for a custom context manager in python