human
Complete the below
def EnterOpContext(op):

    ''''Returns a StackContext that when entered, puts the given operation into scope in a new
    OpContext.'
    '''
assistant
#Here is the Python code you requested.
    @contextmanager
    def _ContextManager(op):
        with OpContext():
            with OpContext.current().Enter(op):
                (yield)
    return stack_context.StackContext(partial(_ContextManager, op))