class_docstr: Abstract class for optimizers.
  
  An optimizers transforms a DAG of operators with a list of predefined rules.
docstr: Optimize operators with a list of rules.
docstr_tok: ["Optimize","operators","with","a","list","of","rules","."]
code: def optimize(self, plan: Plan) -> Plan:
      """Optimize operators with a list of rules."""
      for rule in self.rules:
          plan = rule.apply(plan)
      return plan
  
imports: from typing import List
  from .plan import Plan
label_desc: Use image node_id 2 for calling the Optimizer obj's underlying member method code with example usage: obj.optimize(plan) and returns: plan