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 load composite followed by other datasets.
code: def test_load_dataset_after_composite(self):
      """Test load composite followed by other datasets."""
      from satpy.readers.yaml_reader import FileYAMLReader
      from satpy.tests.utils import FakeCompositor
  
      load_mock = spy_decorator(FileYAMLReader.load)
      comp_mock = spy_decorator(FakeCompositor.__call__)
      with mock.patch.object(
          FileYAMLReader, "load", load_mock
      ), mock.patch.object(FakeCompositor, "__call__", comp_mock):
          lmock = load_mock.mock
          scene = Scene(filenames=["fake1_1.txt"], reader="fake1")
          scene.load(["comp3"])
          assert lmock.call_count == 1
          scene.load(["ds1"])
          assert lmock.call_count == 2
          scene.load(["ds1"])
          # we should only load from the file twice
          assert lmock.call_count == 2
          # we should only generate the composite once
          assert comp_mock.mock.call_count == 1
          loaded_ids = list(scene._datasets.keys())
          assert len(loaded_ids) == 2
  
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 15 for calling the TestLoadingComposites obj's underlying member method code with example usage: obj.test_load_dataset_after_composite() without return types