def METHOD_NAME(self, metrics: Mapping[str, float], step: Optional[int] = None) -> None:
    if self.clearml_model and self.clearml_cfg.METHOD_NAME:
        metrics = {
            k: {
                "value": str(v.item() if type(v) == Tensor else v),
                "type": str(type(v.item() if type(v) == Tensor else v)),
            }
            for k, v in metrics.items()
        }
        self.last_metrics = metrics