class_docstr: Test case for the sun zenith reducer.
docstr: Test invalid max_sza with sza data available.
docstr_tok: ["Test","invalid","max_sza","with","sza","data","available","."]
code: def test_invalid_max_sza(self, sunz_ds1, sunz_sza):
      """Test invalid max_sza with sza data available."""
      from satpy.modifiers.geometry import SunZenithReducer
  
      with pytest.raises(
          ValueError,
          match="`max_sza` must be defined when using the SunZenithReducer.",
      ):
          SunZenithReducer(
              name="sza_reduction_test_invalid",
              modifiers=tuple(),
              max_sza=None,
          )
  
imports: import unittest
  from datetime import datetime
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  import xarray
  from pyresample.geometry import AreaDefinition, StackedAreaDefinition
  from pytest_lazyfixture import lazy_fixture
label_desc: Use image node_id 4 for calling the TestSunZenithReducer obj's underlying member method code with example usage: obj.test_invalid_max_sza(sunz_ds1, sunz_sza) without return types