<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_tile(self, x_tile, y_tile, zoom, bands=None, masked=None, resampling=Resampling.cubic):
 """Convert mercator tile to raster window. :param x_tile: x coordinate of tile :param y_tile: y coordinate of tile :param zoom: zoom level :param bands: list of indices of requested bands, default None which returns all bands :param resampling: reprojection resampling method, default `cubic` :return: GeoRaster2 of tile in WEB_MERCATOR_CRS You can use TELLURIC_GET_TILE_BUFFER env variable to control the number of pixels surrounding the vector you should fetch when using this method on a raster that is not in WEB_MERCATOR_CRS default to 10 """

        if self.crs == WEB_MERCATOR_CRS:
            return self._get_tile_when_web_mercator_crs(x_tile, y_tile, zoom, bands, masked, resampling)

        roi = GeoVector.from_xyz(x_tile, y_tile, zoom)
        left, bottom, right, top = roi.get_bounds(WEB_MERCATOR_CRS)
        new_affine = rasterio.warp.calculate_default_transform(WEB_MERCATOR_CRS, self.crs,
                                                               256, 256, left, bottom, right, top)[0]
        new_resolution = resolution_from_affine(new_affine)
        buffer_ratio = int(os.environ.get("TELLURIC_GET_TILE_BUFFER", 10))
        roi_buffer = roi.buffer(math.sqrt(roi.area * buffer_ratio / 100))
        raster = self.crop(roi_buffer, resolution=new_resolution, masked=masked,
                           bands=bands, resampling=resampling)
        raster = raster.reproject(dst_crs=WEB_MERCATOR_CRS, resolution=MERCATOR_RESOLUTION_MAPPING[zoom],
                                  dst_bounds=roi_buffer.get_bounds(WEB_MERCATOR_CRS),
                                  resampling=Resampling.cubic_spline)
        # raster = raster.get_tile(x_tile, y_tile, zoom, bands, masked, resampling)
        raster = raster.crop(roi).resize(dest_width=256, dest_height=256)
        return raster