human
Complete this python program:
def EnterOpContext(op):
assistant
#Here is the Python code you requested.

    """Returns a StackContext that when entered, puts the given operation into scope in a new
    OpContext.
    """
    @contextmanager
    def _ContextManager(op):
        with OpContext():
            with OpContext.current().Enter(op):
                (yield)
    return stack_context.StackContext(partial(_ContextManager, op))