class_docstr: Test the sum bucket resampler.
class_docstr_tok: ["Test","the","sum","bucket","resampler","."]
docstr: Test sum bucket resampler computation.
code: def test_compute(self):
      """Test sum bucket resampler computation."""
      # 1D data
      data = da.ones((5,))
      res = self._compute_mocked_bucket_sum(data)
      assert res.shape == (1, 5)
      # 2D data
      data = da.ones((5, 5))
      res = self._compute_mocked_bucket_sum(data)
      assert res.shape == (1, 5, 5)
      # 3D data
      data = da.ones((3, 5, 5))
      res = self._compute_mocked_bucket_sum(
          data, return_data=data[0, :, :]
      )
      assert res.shape == (3, 5, 5)
  
imports: import os
  import shutil
  import tempfile
  import unittest
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  import xarray
  from pyproj import CRS
  from satpy.resample import NativeResampler
label_desc: Use image node_id 3 for calling the TestBucketSum obj's underlying member method code with example usage: obj.test_compute() without return types