Beautiful Code Interview Question

How do you implement your own Context manager in Python?