class_docstr: Test individual functions used for blending.
class_docstr_tok: ["Test","individual","functions","used","for","blending","."]
docstr: Test blending two scenes by stacking them on top of each other using function 'stack'.
docstr_tok: ["Test","blending","two","scenes","by","stacking","them","on","top","of","each","other","using","function","'stack","'","."]
code: def test_blend_two_scenes_using_stack(
      self,
      multi_scene_and_weights,
      groups,
      scene1_with_weights,
      scene2_with_weights,
  ):
      """Test blending two scenes by stacking them on top of each other using function 'stack'."""
      multi_scene, weights = multi_scene_and_weights
      scene1, weights1 = scene1_with_weights
      scene2, weights2 = scene2_with_weights
  
      multi_scene.group(groups)
  
      resampled = multi_scene
      stacked = resampled.blend(blend_function=stack)
      result = stacked["CloudType"].compute()
  
      expected = scene2["polar-ct"].copy()
      expected[..., -1, :] = scene1["geo-ct"][..., -1, :]
  
      xr.testing.assert_equal(result, expected.compute())
      _check_stacked_metadata(result, "CloudType")
      assert result.attrs["start_time"] == datetime(
          2023, 1, 16, 11, 9, 17
      )
      assert result.attrs["end_time"] == datetime(
          2023, 1, 16, 11, 28, 1, 900000
      )
  
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 1 for calling the TestBlendFuncs obj's underlying member method code with example usage: obj.test_blend_two_scenes_using_stack(multi_scene_and_weights, groups, scene1_with_weights, scene2_with_weights) without return types