def set_if_set(dct, key, value):
 if (value is not UNSET):
  dct[key] = value

def set_if_set ( dct , key , value ) : if ( value is not UNSET ) : dct [ key ] = value
sets key in dct to value unless value is unset .