def log_image(
        self,
        tag: str,
        image: np.ndarray,
        runner: "IRunner",
        scope: str = None,
    ) -> None:
        """Logs image to Tensorboard for current scope on current step."""
        assert runner.loader_key is not None
        self._check_loader_key(loader_key=runner.loader_key)
        tensor = _image_to_tensor(image)
        self.loggers[runner.loader_key].add_image(
            f"{tag}", tensor, global_step=runner.epoch_step
        )
Logs image to Tensorboard for current scope on current step.
catalyst/loggers/tensorboard.py