class_docstr: Converts one dataflow plan into another dataflow plan that is more optimal in some way (e.g. performance).
class_docstr_tok: ["Converts","one","dataflow","plan","into","another","dataflow","plan","that","is","more","optimal","in","some","way","(","e.g",".","performance",")","."]
code: def optimize(
      self, dataflow_plan: DataflowPlan
  ) -> DataflowPlan:  # noqa: D
      raise NotImplementedError
  
imports: from __future__ import annotations
  from abc import ABC, abstractmethod
  from metricflow.dataflow.dataflow_plan import DataflowPlan
label_desc: Use image node_id 1 for calling the DataflowPlanOptimizer obj's underlying member method code with example usage: obj.optimize(dataflow_plan) without return types