def get_unique_value(type, id):
 return {u'File': os.path.abspath(create_tempfile()), u'Boolean': True, u'Number': abs(hash(id)), u'String': id}[type]

def get_unique_value ( type , id ) : return { u'File' : os . path . abspath ( create_tempfile ( ) ) , u'Boolean' : True , u'Number' : abs ( hash ( id ) ) , u'String' : id } [ type ]
returns a unique value of type type .