class_docstr: Test resampling a Scene to another Scene object.
docstr: Test that the Scene is properly copied during resampling.
  
  The Scene that is created as a copy of the original Scene should not
  be able to affect the original Scene object.
docstr_tok: ["Test","that","the","Scene","is","properly","copied","during","resampling",".","The","Scene","that","is","created","as","a","copy","of","the","original","Scene","should","not","be","able","to","affect","the","original","Scene","object","."]
code: def test_resample_scene_copy(self, rs, datasets):
      """Test that the Scene is properly copied during resampling.
  
      The Scene that is created as a copy of the original Scene should not
      be able to affect the original Scene object.
  
      """
      from pyresample.geometry import AreaDefinition
  
      rs.side_effect = self._fake_resample_dataset_force_20x20
  
      proj_str = (
          "+proj=lcc +datum=WGS84 +ellps=WGS84 "
          "+lon_0=-95. +lat_0=25 +lat_1=25 +units=m +no_defs"
      )
      area_def = AreaDefinition(
          "test",
          "test",
          "test",
          proj_str,
          5,
          5,
          (-1000.0, -1500.0, 1000.0, 1500.0),
      )
      area_def.get_area_slices = mock.MagicMock()
      scene = Scene(
          filenames=["fake1_1.txt", "fake1_highres_1.txt"],
          reader="fake1",
      )
  
      scene.load(["comp19"])
      new_scene = scene.resample(area_def, datasets=datasets)
      new_scene["new_ds"] = new_scene["comp19"].copy()
  
      scene.load(["ds1"])
  
      comp19_node = scene._dependency_tree["comp19"]
      ds5_mod_id = make_dataid(name="ds5", modifiers=("res_change",))
      ds5_node = scene._dependency_tree[ds5_mod_id]
      comp13_node = scene._dependency_tree["comp13"]
  
      assert comp13_node.data[1][0] is comp19_node.data[1][0]
      assert comp13_node.data[1][0] is ds5_node
      pytest.raises(
          KeyError, scene._dependency_tree.__getitem__, "new_ds"
      )
  
      # comp19 required resampling to produce so we should have its 3 deps
      # 1. comp13
      # 2. ds5
      # 3. ds2
      # Then we loaded ds1 separately so we should have
      # 4. ds1
      loaded_ids = list(scene.keys())
      assert len(loaded_ids) == 4
      for name in ("comp13", "ds5", "ds2", "ds1"):
          assert any(x["name"] == name for x in loaded_ids)
  
      loaded_ids = list(new_scene.keys())
      assert len(loaded_ids) == 2
      assert loaded_ids[0] == make_cid(name="comp19")
      assert loaded_ids[1] == make_cid(name="new_ds")
  
imports: from unittest import mock
  import numpy
  import pytest
  import xarray
  from dask import array
  from satpy import Scene
  from satpy.dataset.dataid import default_id_keys_config
  from satpy.tests.utils import make_cid, make_dataid
label_desc: Use image node_id 3 for calling the TestSceneResampling obj's underlying member method code with example usage: obj.test_resample_scene_copy(rs, datasets) without return types