def enter(self, state):
        """A contextmanager that pushes ``state`` for the duration of the
        context.
        """
        self.push(state)
        try:
            yield
        finally:
            self.pop()
A contextmanager that pushes ``state`` for the duration of the
        context.
        
numba/core/utils.py