code: def _get_expected_stack_select(
      scene1: Scene, scene2: Scene
  ) -> xr.DataArray:
      expected = scene2["polar-ct"]
      expected[..., NUM_TEST_ROWS, :] = scene1["geo-ct"][
          ..., NUM_TEST_ROWS, :
      ]
      expected[..., :, NUM_TEST_COLS] = scene1["geo-ct"][
          ..., :, NUM_TEST_COLS
      ]
      expected[..., -1, :] = scene1["geo-ct"][..., -1, :]
      return expected.compute()
  
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 a global function with example usage: _get_expected_stack_select(scene1, scene2) and returns: expected