def attrs(self) -> dict[Any, Any]:
        """Dictionary of local attributes on this NamedArray."""
        if self._attrs is None:
            self._attrs = {}
        return self._attrs
Dictionary of local attributes on this NamedArray.
xarray/namedarray/core.py