code: def delete_tag(self, key, update_session=True):
          
          existing_tags = {x.key: x for x in self.tags}
          if key in existing_tags:
              if update_session:
                  db.session.delete(existing_tags[key])
  
              self.tags.remove(existing_tags[key])
              return True
  
          return False
docs: Removes a tag from a resource based on the tag key. Returns `True` if the tag was removed or `False` if the
          tag didn't exist
  
          Args:
              key (str): Key of the tag to delete
              update_session (bool): Automatically add the change to the SQLAlchemy session. Default: True
  
          Returns: