class_docstr: A object that wraps an existing ``RewriteDatabase``.
  
  This is needed because we can't register the same ``RewriteDatabase``
  multiple times in different positions in a ``SequentialDB``.
class_docstr_tok: ["A","object","that","wraps","an","existing","``","RewriteDatabase","``",".","This","is","needed","because","we","ca","n't","register","the","same","``","RewriteDatabase","``","multiple","times","in","different","positions","in","a","``","SequentialDB","``","."]
code: def query(self, *tags, **kwtags):
      return self.db.query(*tags, **kwtags)
  
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 2 for calling the ProxyDB obj's underlying member method code with example usage: obj.query() and returns: self