You can also simply do:
tree.tk.call('.'+tree_name, 'tag', 'add', tag_name, f'{{{iid}}}')
Note that to do this you also have to add the option name=tree_name when defining the Treeview object.
name=tree_name