class_docstr: Test NIR reflectance compositor.
docstr: Set up the test case for the NIRReflectance compositor.
docstr_tok: ["Set","up","the","test","case","for","the","NIRReflectance","compositor","."]
code: def setUp(self):
      """Set up the test case for the NIRReflectance compositor."""
      self.get_lonlats = mock.MagicMock()
      self.lons, self.lats = 1, 2
      self.get_lonlats.return_value = (self.lons, self.lats)
      area = mock.MagicMock(get_lonlats=self.get_lonlats)
  
      self.start_time = 1
      self.metadata = {
          "platform_name": "Meteosat-11",
          "sensor": "seviri",
          "name": "IR_039",
          "area": area,
          "start_time": self.start_time,
      }
  
      nir_arr = np.random.random((2, 2))
      self.nir = xr.DataArray(da.from_array(nir_arr), dims=["y", "x"])
      self.nir.attrs.update(self.metadata)
  
      ir_arr = 100 * np.random.random((2, 2))
      self.ir_ = xr.DataArray(da.from_array(ir_arr), dims=["y", "x"])
      self.ir_.attrs["area"] = area
  
      self.sunz_arr = 100 * np.random.random((2, 2))
      self.sunz = xr.DataArray(
          da.from_array(self.sunz_arr), dims=["y", "x"]
      )
      self.sunz.attrs["standard_name"] = "solar_zenith_angle"
      self.sunz.attrs["area"] = area
      self.da_sunz = da.from_array(self.sunz_arr)
  
      refl_arr = np.random.random((2, 2))
      self.refl = da.from_array(refl_arr)
      self.refl_with_co2 = da.from_array(np.random.random((2, 2)))
      self.refl_from_tbs = mock.MagicMock()
      self.refl_from_tbs.side_effect = self.fake_refl_from_tbs
  
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 1 for calling the TestNIRReflectance obj's underlying member method code with example usage: obj.setUp() without return types