def encoding(self) -> dict[Any, Any]:
        """Dictionary of global encoding attributes on this dataset"""
        if self._encoding is None:
            self._encoding = {}
        return self._encoding
Dictionary of global encoding attributes on this dataset
xarray/core/dataset.py