def METHOD_NAME(cls, value):
    """patch dict"""
    value['noempty'] = value.get(cls.key_noempty, False)
    value['trans_r'] = value.get(cls.key_trans_r)
    value['trans_w'] = value.get(cls.key_trans_w)
    value['template'] = value.get(cls.key_template, True)
    # remove old entries
    value.pop(cls.key_noempty, None)
    value.pop(cls.key_trans_r, None)
    value.pop(cls.key_trans_w, None)
    return value