class_docstr: A sequence of potential rewrites.
  
  Retrieve a sequence of rewrites as a `SequentialGraphRewriter` by calling
  `SequenceDB.query`.
  
  Each potential rewrite is registered with a floating-point position.
  No matter which rewrites are selected by a query, they are carried
  out in order of increasing position.
class_docstr_tok: ["A","sequence","of","potential","rewrites",".","Retrieve","a","sequence","of","rewrites","as","a","`","SequentialGraphRewriter","`","by","calling","`","SequenceDB.query","`",".","Each","potential","rewrite","is","registered","with","a","floating-point","position",".","No","matter","which","rewrites","are","selected","by","a","query",",","they","are","carried","out","in","order","of","increasing","position","."]
code: def print_summary(self, stream=sys.stdout):
      print(f"{self.__class__.__name__ } (id {id(self)})", file=stream)
      positions = list(self.__position__.items())
  
      def c(a, b):
          return (a[1] > b[1]) - (a[1] < b[1])
  
      positions.sort(key=cmp_to_key(c))
  
      print("\tposition", positions, file=stream)
      print("\tnames", self._names, file=stream)
      print("\tdb", self.__db__, file=stream)
  
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 SequenceDB obj's underlying member method code with example usage: obj.print_summary(stream) and returns: unknown