class_docstr: Test the bucket resampler.
class_docstr_tok: ["Test","the","bucket","resampler","."]
docstr: Test bucket resampler precomputation.
code: def test_precompute(self, bucket):
      """Test bucket resampler precomputation."""
      bucket.return_value = True
      self.bucket.precompute()
      assert self.bucket.resampler
      bucket.assert_called_once_with(self.target_geo_def, 1, 2)
  
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 TestBucketAvg obj's underlying member method code with example usage: obj.test_precompute(bucket) without return types