def use_metric(res1, res2):
    """collect metric for pretrain model and direct train model"""

    def save_metric():
        pass

    def compare_metric(stage):
        pass

    def collect_metric(stage: str, name: str, result):
        pass

    return collect_metric, compare_metric


def collect_metric(stage: str, name: str, result):
    pass


def save_metric():
    pass
