Add basic docstring to annotate_context_with_state