class_docstr: Test the Scene object's `.load` method for composites.
class_docstr_tok: ["Test","the","Scene","object","'s","`",".load","`","method","for","composites","."]
docstr: Test loading a composite that depends on an incompatible area modified dataset.
code: def test_load_comp18(self):
      """Test loading a composite that depends on an incompatible area modified dataset."""
      # it is fine that an optional prereq doesn't exist
      scene = Scene(
          filenames=["fake1_1.txt", "fake1_highres_1.txt"],
          reader="fake1",
      )
      scene.load(["comp18"])
      loaded_ids = list(scene._datasets.keys())
      # depends on:
      #   ds3
      #   ds4 (mod1, mod3)
      #   ds5 (mod1, incomp_areas)
      # We should end up with ds3, ds4 (mod1, mod3), ds5 (mod1), and ds1
      # for the incomp_areas modifier
      assert len(loaded_ids) == 4  # the 1 dependencies
      assert "ds3" in scene._datasets
      assert (
          make_dataid(
              name="ds4",
              calibration="reflectance",
              modifiers=("mod1", "mod3"),
          )
          in scene._datasets
      )
      assert (
          make_dataid(name="ds5", resolution=250, modifiers=("mod1",))
          in scene._datasets
      )
  
imports: from unittest import mock
  import pytest
  import xarray
  from dask import array
  from satpy import Scene
  from satpy.tests.utils import make_cid, make_dataid, make_dsq, spy_decorator
label_desc: Use image node_id 7 for calling the TestLoadingComposites obj's underlying member method code with example usage: obj.test_load_comp18() without return types