def _get_cmds_id(*cmds):
    """
    Returns an identifier for a group of partially tagged commands.
    If there are no tagged commands, returns None.
    """
    tags = [cmd[2] if len(cmd) == 3 else None for cmd in cmds]
    if [tag for tag in tags if tag != None]:
        return tuple(tags)
    else:
        return None