def METHOD_NAME(self, vm, keymap):
    """
    use custom attribute keymap to resolve key IDs into a dict and
    assign custom value.
    """
    attr = {}
    for value in vm.value:
        attr[str(keymap[value.key])] = str(value.value)
    return attr