docstr: deletes a tagged object by the object_id, object_type, and tag_name
docstr_tok: ["deletes","a","tagged","object","by","the","object_id",",","object_type",",","and","tag_name"]
code: def delete_tagged_object(
      object_type: ObjectType, object_id: int, tag_name: str
  ) -> None:
      """
      deletes a tagged object by the object_id, object_type, and tag_name
      """
      tag = TagDAO.find_by_name(tag_name.strip())
      if not tag:
          raise DAODeleteFailedError(
              message=f"Tag with name {tag_name} does not exist."
          )
  
      tagged_object = db.session.query(TaggedObject).filter(
          TaggedObject.tag_id == tag.id,
          TaggedObject.object_type == object_type,
          TaggedObject.object_id == object_id,
      )
      if not tagged_object:
          raise DAODeleteFailedError(
              message=f'Tagged object with object_id: {object_id} \
                      object_type: {object_type} \
                      and tag name: "{tag_name}" could not be found'
          )
      try:
          db.session.delete(tagged_object.one())
          db.session.commit()
      except SQLAlchemyError as ex:  # pragma: no cover
          db.session.rollback()
          raise DAODeleteFailedError(exception=ex) from ex
  
imports: import logging
  from operator import and_
  from typing import Any, Optional
  from flask import g
  from sqlalchemy.exc import SQLAlchemyError
  from superset.commands.tag.exceptions import TagNotFoundError
  from superset.commands.tag.utils import to_object_type
  from superset.daos.base import BaseDAO
  from superset.daos.exceptions import DAODeleteFailedError
  from superset.exceptions import MissingUserContextException
  from superset.extensions import db
  from superset.models.dashboard import Dashboard
  from superset.models.slice import Slice
  from superset.models.sql_lab import SavedQuery
  from superset.tags.models import get_tag, ObjectType, Tag, TaggedObject, TagType, user_favorite_tag_table
  from superset.utils.core import get_user_id
label_desc: Use image node_id 2 for calling the TagDAO obj's underlying member method code with example usage: obj.delete_tagged_object(object_type, object_id, tag_name) without return types