class_docstr: Test individual functions used for blending.
class_docstr_tok: ["Test","individual","functions","used","for","blending","."]
docstr: Test the 'stack' function.
docstr_tok: ["Test","the","'stack","'","function","."]
code: def test_blend_function_stack(self, datasets_and_weights):
      """Test the 'stack' function."""
      input_data = datasets_and_weights
  
      ds1 = input_data["datasets"][0]
      ds2 = input_data["datasets"][1]
  
      res = stack([ds1, ds2])
      expected = ds2.copy()
      expected.attrs["start_time"] = ds1.attrs["start_time"]
  
      xr.testing.assert_equal(res.compute(), expected.compute())
      assert expected.attrs == res.attrs
  
imports: from datetime import datetime
  import dask.array
  import numpy
  import pytest
  import xarray
  from pyresample.geometry import AreaDefinition
  from satpy import DataQuery, Scene
  from satpy.multiscene import stack, timeseries
  from satpy.tests.multiscene_tests.test_utils import DEFAULT_SHAPE, _create_test_area, _create_test_dataset, _create_test_int8_dataset
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 6 for calling the TestBlendFuncs obj's underlying member method code with example usage: obj.test_blend_function_stack(datasets_and_weights) without return types