code: def scene1_with_weights(cloud_type_data_array1, test_area):
      """Create first test scene with a dataset of weights."""
      from satpy import Scene
  
      scene = Scene()
      scene[
          cloud_type_data_array1.attrs["_satpy_id"]
      ] = cloud_type_data_array1
  
      wgt1 = _create_test_dataset(
          name="geo-ct-wgt", area=test_area, values=0
      )
  
      wgt1[NUM_TEST_ROWS, :] = 2
      wgt1[:, NUM_TEST_COLS] = 2
  
      dsid2 = make_dataid(name="geo-cma", resolution=3000, modifiers=())
      scene[dsid2] = _create_test_int8_dataset(
          name="geo-cma", area=test_area, values=2
      )
      scene[dsid2].attrs["start_time"] = datetime(
          2023, 1, 16, 11, 9, 17
      )
      scene[dsid2].attrs["end_time"] = datetime(2023, 1, 16, 11, 12, 22)
  
      wgt2 = _create_test_dataset(
          name="geo-cma-wgt", area=test_area, values=0
      )
  
      return scene, [wgt1, wgt2]
  
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 8 for calling a global function with example usage: scene1_with_weights(cloud_type_data_array1, test_area) and returns: scene,  list