class_docstr: Test NIR reflectance compositor.
docstr: Test NIR reflectance compositor provided extra co2 info.
docstr_tok: ["Test","NIR","reflectance","compositor","provided","extra","co2","info","."]
code: def test_no_sunz_with_co2(self, calculator, apply_modifier_info, sza):
      """Test NIR reflectance compositor provided extra co2 info."""
      calculator.return_value = mock.MagicMock(
          reflectance_from_tbs=self.refl_from_tbs
      )
      from satpy.modifiers.spectral import NIRReflectance
  
      sza.return_value = self.da_sunz
  
      comp = NIRReflectance(name="test")
      info = {"modifiers": None}
      co2_arr = np.random.random((2, 2))
      co2 = xr.DataArray(da.from_array(co2_arr), dims=["y", "x"])
      co2.attrs["wavelength"] = [12.0, 13.0, 14.0]
      co2.attrs["units"] = "K"
      res = comp([self.nir, self.ir_], optional_datasets=[co2], **info)
  
      self.refl_from_tbs.assert_called_with(
          self.da_sunz, self.nir.data, self.ir_.data, tb_ir_co2=co2.data
      )
      assert np.allclose(res.data, self.refl_with_co2 * 100).compute()
  
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 5 for calling the TestNIRReflectance obj's underlying member method code with example usage: obj.test_no_sunz_with_co2(calculator, apply_modifier_info, sza) without return types