code: def test_EquilibriumDB(self):
      eq_db = EquilibriumDB()
  
      with pytest.raises(ValueError, match=r"`final_rewriter` and.*"):
          eq_db.register(
              "d", TestRewriter(), final_rewriter=True, cleanup=True
          )
  
file_path: pytensor/tests/graph/rewriting/test_db.py
imports: import pytest
  from pytensor.graph.rewriting.basic import GraphRewriter, SequentialGraphRewriter
  from pytensor.graph.rewriting.db import EquilibriumDB, LocalGroupDB, ProxyDB, RewriteDatabase, SequenceDB
label_desc: Use image node_id 2 for calling the TestDB obj's underlying member method code with example usage: obj.test_EquilibriumDB() without return types