def METHOD_NAME(prefix, type, mode):
    new_id = "{0}.{1}.".format(prefix, type)
    if mode == 'sequential':
        new_id += str(next_ids_sequential[type])
        next_ids_sequential[type] += 1
    elif mode == 'uuid':
        new_id += str(uuid4())
    elif mode == 'hex8':
        new_id += hexlify(os.urandom(4)).decode('ascii')
    elif mode == 'hex12':
        new_id += hexlify(os.urandom(6)).decode('ascii')
    new_id += '.1'
    return new_id