def _generate_id(self):
name = self.name.replace(self.special_separator, "<STR_LIT:->").replace("<STR_LIT:.>", "<STR_LIT:->")<EOL>loc = "<STR_LIT>"<EOL>if self.location:<EOL><INDENT>loc = self.location<EOL><DEDENT>_id = "<STR_LIT>".format(<EOL>PREFIX=constants.CONU_ARTIFACT_TAG,<EOL>NAME=name,<EOL>HASH=hashlib.sha512(loc).hexdigest()[: <NUM_LIT:10>],<EOL>SEP=self.special_separator<EOL>)<EOL>return _id<EOL>
create new unique identifier