@staticmethod
def serialize_metric(metrics: List[str], modes: List[str]):
    '\n        Converts metrics to https://app.sigopt.com/docs/objects/metric\n        '
    serialized_metric = []
    for (metric, mode) in zip(metrics, modes):
        serialized_metric.append(dict(name=metric, **SigOptSearch.OBJECTIVE_MAP[mode].copy()))
    return serialized_metric
Converts metrics to https://app.sigopt.com/docs/objects/metric
@staticmethod
def serialize_metric(metrics: List[str], modes: List[str]):
    '\n        \n        '
    serialized_metric = []
    for (metric, mode) in zip(metrics, modes):
        serialized_metric.append(dict(name=metric, **SigOptSearch.OBJECTIVE_MAP[mode].copy()))
    return serialized_metric