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 modifying a dataset with a modifier with modified deps.
  
  More importantly test that loading the modifiers dependency at the
  same time as the original modified dataset that the dependency tree
  nodes are unique and that DataIDs.
code: def test_modified_with_wl_dep(self):
      """Test modifying a dataset with a modifier with modified deps.
  
      More importantly test that loading the modifiers dependency at the
      same time as the original modified dataset that the dependency tree
      nodes are unique and that DataIDs.
  
      """
      from satpy.dataset.dataid import WavelengthRange
  
      # Check dependency tree nodes
      # initialize the dep tree without loading the data
      ds1_mod_id = make_dsq(name="ds1", modifiers=("mod_wl",))
      ds3_mod_id = make_dsq(name="ds3", modifiers=("mod_wl",))
  
      scene = Scene(filenames=["fake1_1.txt"], reader="fake1")
      scene._update_dependency_tree({ds1_mod_id, ds3_mod_id}, None)
  
      ds1_mod_node = scene._dependency_tree[ds1_mod_id]
      ds3_mod_node = scene._dependency_tree[ds3_mod_id]
      ds1_mod_dep_node = ds1_mod_node.data[1][1]
      ds3_mod_dep_node = ds3_mod_node.data[1][1]
      # mod_wl depends on the this node:
      ds6_modded_node = scene._dependency_tree[
          make_dataid(name="ds6", modifiers=("mod1",))
      ]
      # this dep should be full qualified with name and wavelength
      assert ds6_modded_node.name["name"] is not None
      assert isinstance(
          ds6_modded_node.name["wavelength"], WavelengthRange
      )
      # the node should be shared between everything that uses it
      assert ds1_mod_dep_node is ds3_mod_dep_node
      assert ds1_mod_dep_node is ds6_modded_node
  
      # it is fine that an optional prereq doesn't exist
      scene.load([ds1_mod_id, ds3_mod_id])
  
      loaded_ids = list(scene._datasets.keys())
      assert len(loaded_ids) == 2
      assert ds1_mod_id in scene._datasets
      assert ds3_mod_id 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 18 for calling the TestLoadingComposites obj's underlying member method code with example usage: obj.test_modified_with_wl_dep() without return types