def uuidify(val):
if uuidutils.is_uuid_like(val):<EOL><INDENT>return val<EOL><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>int_val = int(val, <NUM_LIT:16>)<EOL><DEDENT>except ValueError:<EOL><INDENT>with excutils.save_and_reraise_exception():<EOL><INDENT>LOG.error("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>", val)<EOL><DEDENT><DEDENT>res = str(int_val)<EOL>num = <NUM_LIT:12> - len(res)<EOL>return "<STR_LIT>" + "<STR_LIT:0>" * num + res<EOL><DEDENT>
Takes an integer and transforms it to a UUID format.

    returns: UUID formatted version of input.