code: def register_optimizer(optimizer_cls: Type[RuntimeOptimizer]):
      _engine_to_optimizers[optimizer_cls.engine] = optimizer_cls
      return optimizer_cls
  
file_path: mars/mars/optimization/physical/core.py
imports: from abc import ABC, abstractmethod
  from typing import List, Tuple, Dict, Type
  from ...core import ChunkGraph, ChunkType, OperandType
  from ...utils import build_fuse_chunk
label_desc: Use image node_id 1 for calling a global function with example usage: register_optimizer(optimizer_cls) and returns: optimizer_cls