code: def scene2_with_weights(cloud_type_data_array2, test_area):
      """Create second test scene."""
      from satpy import Scene
  
      scene = Scene()
      scene[
          cloud_type_data_array2.attrs["_satpy_id"]
      ] = cloud_type_data_array2
  
      wgt1 = _create_test_dataset(
          name="polar-ct-wgt", area=test_area, values=1
      )
  
      dsid2 = make_dataid(
          name="polar-cma", resolution=1000, modifiers=()
      )
      scene[dsid2] = _create_test_int8_dataset(
          name="polar-cma", area=test_area, values=4
      )
      scene[dsid2].attrs["start_time"] = datetime(
          2023, 1, 16, 11, 12, 57, 500000
      )
      scene[dsid2].attrs["end_time"] = datetime(
          2023, 1, 16, 11, 28, 1, 900000
      )
  
      wgt2 = _create_test_dataset(
          name="polar-cma-wgt", area=test_area, values=1
      )
      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 9 for calling a global function with example usage: scene2_with_weights(cloud_type_data_array2, test_area) and returns: scene,  list