parameters: (container, key, encode)
docstring: Run 'encode' on 'container[key]' value and update it.
docstring_summary: Run 'encode' on 'container[key]' value and update it.
docstring_tokens: Run encode on container [ key ] value and update it .
function: def encode_value(container, key, encode):
      """ Run 'encode' on 'container[key]' value and update it. """
  
      if key in container:
          value = encode(container[key])
          container.update({key: value})
function_tokens: def encode_value ( container , key , encode ) : if key in container : value = encode ( container [ key ] ) container . update ( { key : value } )