original_docstring: 
      Update supplied vertex attribute to the given value. Changes will also be
      reflected back into enclosing vertex JSON.
      :param vertex_attribute: Object to update
      :param value:  Value to use
      
docstring: Update supplied vertex attribute to the given value. Changes will also be
  reflected back into enclosing vertex JSON.
docstring_tokens: Update supplied vertex attribute to the given value . Changes will also be reflected back into enclosing vertex JSON .
code: def __update_vertex_attribute(vertex_attribute, value):
      """
      Update supplied vertex attribute to the given value. Changes will also be
      reflected back into enclosing vertex JSON.
      :param vertex_attribute: Object to update
      :param value:  Value to use
      """
      if not isinstance(vertex_attribute, VertexAttrib):
          raise InvalidTypeException("Supplied object is not VertexAttrib")
  
      attrib_type = vertex_attribute.attrib_fk.type_fk.type
      if attrib_type == AttribTypeChoice.DICT:
          vertex_attribute.value_str = json.dumps(value)
      else:
          vertex_attribute.value_str = str(value)
  
      vertex_attribute.save()
      vertex = vertex_attribute.vertex_fk
      vertex_attribute_json = json.loads(vertex.attribute_json)
      vertex_attribute_json[vertex_attribute.attrib_fk.label] = \
          attrib_str_to_value(attrib_type, value)
      vertex.attribute_json = json.dumps(vertex_attribute_json)
      vertex.save()
code_tokens: def __update_vertex_attribute ( vertex_attribute , value ) : if not isinstance ( vertex_attribute , VertexAttrib ) : raise InvalidTypeException ( "Supplied object is not VertexAttrib" ) attrib_type = vertex_attribute . attrib_fk . type_fk . type if attrib_type == AttribTypeChoice . DICT : vertex_attribute . value_str = json . dumps ( value ) else : vertex_attribute . value_str = str ( value ) vertex_attribute . save ( ) vertex = vertex_attribute . vertex_fk vertex_attribute_json = json . loads ( vertex . attribute_json ) vertex_attribute_json [ vertex_attribute . attrib_fk . label ] = attrib_str_to_value ( attrib_type , value ) vertex . attribute_json = json . dumps ( vertex_attribute_json ) vertex . save ( )
short_docstring: Update supplied vertex attribute to the given value.
short_docstring_tokens: Update supplied vertex attribute to the given value .
comment: """
      Update supplied vertex attribute to the given value. Changes will also be
      reflected back into enclosing vertex JSON.
      :param vertex_attribute: Object to update
      :param value:  Value to use
      """