def encoding(self) -> dict:
        """Dictionary of global encoding attributes on this node object."""
        if self._encoding is None:
            self._encoding = {}
        return self._encoding
Dictionary of global encoding attributes on this node object.
xarray/core/datatree.py