class_docstr: Tests for the 'native' resampling method.
class_docstr_tok: ["Tests","for","the","'native","'","resampling","method","."]
docstr: Test classmethod 'expand_reduce' fails when factor does not divide evenly.
code: def test_expand_reduce_aggregate_invalid(self, dim0_factor):
      """Test classmethod 'expand_reduce' fails when factor does not divide evenly."""
      with pytest.raises(ValueError, match="[Aggregation, Expand] .*"):
          NativeResampler._expand_reduce(
              self.d_arr, {0: dim0_factor, 1: 1.0}
          )
  
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 5 for calling the TestNativeResampler obj's underlying member method code with example usage: obj.test_expand_reduce_aggregate_invalid(dim0_factor) without return types