code: def resample_dataset(dataset, destination_area, **kwargs):
      
      # call the projection stuff here
      try:
          source_area = dataset.attrs["area"]
      except KeyError:
          LOG.info("Cannot reproject dataset %s, missing area info",
                   dataset.attrs['name'])
  
          return dataset
  
      fill_value = kwargs.pop('fill_value', get_fill_value(dataset))
      new_data = resample(source_area, dataset, destination_area, fill_value=fill_value, **kwargs)
      new_attrs = new_data.attrs
      new_data.attrs = dataset.attrs.copy()
      new_data.attrs.update(new_attrs)
      new_data.attrs.update(area=destination_area)
  
      return new_data
docs: Resample *dataset* and return the resampled version.
  
      Args:
          dataset (xarray.DataArray): Data to be resampled.
          destination_area: The destination onto which to project the data,
            either a full blown area definition or a string corresponding to
            the name of the area as defined in the area file.
          **kwargs: The extra parameters to pass to the resampler objects.
  
      Returns:
          A resampled DataArray with updated ``.attrs["area"]`` field. The dtype
          of the array is preserved.