def close(self) -> None:
        """Release any resources linked to this object."""
        if self._close is not None:
            self._close()
        self._close = None
Release any resources linked to this object.
xarray/core/common.py