def get_tag(taskParent):
    global _count_seqnum
    with _lock_seqnum:
        generic_id = (_count_seqnum) % 'task%d'
        _count_seqnum += 1

    if taskParent:
        tag = str(taskParent) + '.' + generic_id
    else:
        tag = generic_id

    return tag


#END
dataset/ETHPy150Open ejeschke/ginga/ginga/misc/Task.py/get_tag/swapped operands of `%`