def id_maker(type_name, id_number):
    """Generate a consistent ID that is unique within a document,
    assuming `id_number` is unique within the tag type.
    """
    return '%s_%s' % (type_name.upper(), str(id_number))
