[#951] Import deprecate_context_item in plugins.py