class_docstr: A class that represents a collection/database of rewrites.
  
  These databases are used to logically organize collections of rewrites
  (i.e. `GraphRewriter`\s and `NodeRewriter`).
class_docstr_tok: ["A","class","that","represents","a","collection\/database","of","rewrites",".","These","databases","are","used","to","logically","organize","collections","of","rewrites","(","i.e",".","`","GraphRewriter","`","\\s","and","`","NodeRewriter","`",")","."]
code: def remove_tags(self, name, *tags):
      obj = self.__db__[name]
      assert len(obj) == 1
      obj = obj.copy().pop()
      for tag in tags:
          if tag in self._names:
              raise ValueError(
                  f"The tag '{tag}' for the {obj} collides with an existing name."
              )
          self.__db__[tag].remove(obj)
  
imports: import copy
  import math
  import sys
  from collections.abc import Iterable, Sequence
  from functools import cmp_to_key
  from io import StringIO
  from typing import Optional, Union
  from pytensor.configdefaults import config
  from pytensor.graph.rewriting import basic
  from pytensor.misc.ordered_set import OrderedSet
  from pytensor.utils import DefaultOrderedDict
label_desc: Use image node_id 4 for calling the RewriteDatabase obj's underlying member method code with example usage: obj.remove_tags(name) without return types