#NEWLINE# def add_context( self , key , val ) : #NEWLINE# #INDENT# '\n        Adds a new element to the context.\n\n        Arguments\n        ---------\n        key : str\n            The context key name\n        val\n            The value of the new context item of any type\n\n        Returns\n        -------\n        dict\n            The new context\n        ' #NEWLINE# context = self . get_context ( ) #NEWLINE# context [ key ] = val #NEWLINE# self . _context = context #NEWLINE# return self