def prefixed_name(self, unprefixed_name, max_length=<NUM_LIT:0>):
if max_length == <NUM_LIT:0>:<EOL><INDENT>prefixed_name = '<STR_LIT>' % (self.uuid[:<NUM_LIT:8>], unprefixed_name)<EOL><DEDENT>else:<EOL><INDENT>if max_length < <NUM_LIT:6>:<EOL><INDENT>raise RuntimeError(<EOL>"<STR_LIT>" %<EOL>unprefixed_name<EOL>)<EOL><DEDENT>if max_length < <NUM_LIT:16>:<EOL><INDENT>_uuid = self.uuid[:<NUM_LIT:4>]<EOL><DEDENT>else:<EOL><INDENT>_uuid = self.uuid[:<NUM_LIT:8>]<EOL><DEDENT>name_max_length = max_length - len(_uuid) - <NUM_LIT:1><EOL>if name_max_length < len(unprefixed_name):<EOL><INDENT>hashed_name = hashlib.sha1(unprefixed_name).hexdigest()<EOL>unprefixed_name = hashed_name[:name_max_length]<EOL><DEDENT>prefixed_name = '<STR_LIT>' % (_uuid, unprefixed_name)<EOL><DEDENT>return prefixed_name<EOL>
Returns a uuid pefixed identifier
Args:
    unprefixed_name(str): Name to add a prefix to
    max_length(int): maximum length of the resultant prefixed name,
        will adapt the given name and the length of the uuid ot fit it
Returns:
    str: prefixed identifier for the given unprefixed name