code: def optimize(chunk_graph: ChunkGraph) -> OptimizationRecords:
      return ChunkOptimizer.optimize(chunk_graph)
  
file_path: mars/mars/optimization/logical/chunk/core.py
imports: from typing import List, Type
  from ..core import Optimizer, OptimizationRecords, OperandBasedOptimizationRule
  from ....core import ChunkGraph
  from ....typing import OperandType
label_desc: Use image node_id 2 for calling a global function with example usage: optimize(chunk_graph) and returns: ChunkOptimizer