docs: def swap_dims(self, dims_dict):
          """Returns a new DataArray with swapped dimensions.
  
          Parameters
          ----------
          dims_dict : dict-like
              Dictionary whose keys are current dimension names and whose values
              are new names. Each value must already be a coordinate on this
              array.
  
          Returns
          -------
          renamed : Dataset
              DataArray with swapped dimensions.
  
          See Also
          --------
  
          DataArray.rename
          Dataset.swap_dims
          """
          ds = self._to_temp_dataset().swap_dims(dims_dict)
          return self._from_temp_dataset(ds)