code: def register_metric(
      name: str, *, allow_duplicate: bool = False
  ) -> Callable:
      return IMetric.register(name, allow_duplicate=allow_duplicate)
  
imports: from typing import Callable
  from .schema import IMetric
  from .misc.toolkit import Initializer
label_desc: Use image node_id 2 for calling a global function with example usage: register_metric(name) and returns: IMetric