def log_metrics(
        self,
        metrics: Dict[str, float],
        scope: str,
        runner: "IRunner",
    ) -> None:
        """Logs the metrics to the logger."""
        if (scope == "batch" and not self.log_batch_metrics) or (
            scope in ["loader", "epoch"] and not self.log_epoch_metrics
        ):
            return
        if runner.batch_step % self.logging_frequency == 0:
            self.experiment.log_metrics(
                metrics,
                step=runner.batch_step,
                epoch=runner.epoch_step,
                prefix=f"{runner.loader_key}_{scope}",
            )
Logs the metrics to the logger.
catalyst/loggers/comet.py