def METHOD_NAME(self, metrics_by_name, info):
    for metric_name, metric_ptr in metrics_by_name.items():
        for _step, value in zip(metric_ptr["steps"], metric_ptr["values"]):
            if isinstance(value, numpy.ndarray):
                wandb.log({metric_name: wandb.Image(value)})
            else:
                wandb.log({metric_name: value})