def version(self) -> Optional[str]:
        """Gets the version.

        Returns:
            The experiment key if present

        """
        # Don't create an experiment if we don't have one
        if self._experiment is not None:
            return self._experiment.get_key()
Gets the version.

        Returns:
            The experiment key if present

        
src/lightning/pytorch/loggers/comet.py