code: def offTagAdd(self, name, func):
          '''
          Unregister a callback for tag addition.
  
          Args:
              name (str): The name of the tag or tag glob.
              func (function): The callback func(node, tagname, tagval).
  
          '''
          if '*' in name:
              self.ontagaddglobs.rem(name, func)
              return
  
          cblist = self.ontagadds.get(name)
          if cblist is None:
              return
          try:
              cblist.remove(func)
          except ValueError:
              pasf offTagAdd(self, name, func):
          '''
          Unregister a callback for tag addition.
  
          Args:
              name (str): The name of the tag or tag glob.
              func (function): The callback func(node, tagname, tagval).
  
          '''
          if '*' in name:
              self.ontagaddglobs.rem(name, func)
              return
  
          cblist = self.ontagadds.get(name)
          if cblist is None:
              return
          try:
              cblist.remove(func)
          except ValueError:
              pass
docs: Unregister a callback for tag addition.
  
          Args:
              name (str): The name of the tag or tag glob.
              func (function): The callback func(node, tagname, tagval).