def log_artifact(
        self,
        tag: str,
        runner: "IRunner",
        artifact: object = None,
        path_to_artifact: str = None,
        scope: str = None,
    ) -> None:
        """Logs artifact (any arbitrary file or object) to the logger."""
        metadata_parameters = {"loader_key": runner.loader_key, "scope": scope}
        passed_metadata_parameters = {
            k: v for k, v in metadata_parameters.items() if v is not None
        }
        if path_to_artifact:
            self.experiment.log_asset(
                path_to_artifact,
                file_name=tag,
                step=runner.batch_step,
                metadata=passed_metadata_parameters,
            )
        else:
            self.experiment.log_asset_data(
                pickle.dumps(artifact),
                file_name=tag,
                step=runner.batch_step,
                epoch=runner.epoch_step,
                metadata=passed_metadata_parameters,
            )
Logs artifact (any arbitrary file or object) to the logger.
catalyst/loggers/comet.py