If item is specified, returns True if the specified item has the given tagname and False otherwise. Otherwise, returns a tuple of all items that have the specified tag.
tkinter.ttk/Treeview.tag_has
Treeview.tag_has