class_docstr: An object that specifies a set of rewrites by tag/name.
class_docstr_tok: ["An","object","that","specifies","a","set","of","rewrites","by","tag\/name","."]
docstr: Remove rewrites with the given tags.
code: def excluding(self, *tags: str) -> "RewriteDatabaseQuery":
      """Remove rewrites with the given tags."""
      return RewriteDatabaseQuery(
          self.include,
          self.require,
          self.exclude.union(tags),
          self.subquery,
          self.position_cutoff,
          self.extra_rewrites,
      )
  
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 5 for calling the RewriteDatabaseQuery obj's underlying member method code with example usage: obj.excluding() and returns: RewriteDatabaseQuery