class_docstr: Tests for the 'native' resampling method.
class_docstr_tok: ["Tests","for","the","'native","'","resampling","method","."]
docstr: Test classmethod 'expand_reduce' to aggregate by half.
code: def test_expand_reduce_aggregate(self):
      """Test classmethod 'expand_reduce' to aggregate by half."""
      new_data = NativeResampler._expand_reduce(
          self.d_arr, {0: 0.5, 1: 0.5}
      )
      assert new_data.shape == (3, 10)
  
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 TestNativeResampler obj's underlying member method code with example usage: obj.test_expand_reduce_aggregate() without return types