code: def cloud_type_data_array2(test_area, data_type, image_mode):
      """Get DataArray for cloud type in the second test Scene."""
      dsid1 = make_dataid(
          name="polar-ct", resolution=1000, modifiers=()
      )
      shape = (
          DEFAULT_SHAPE
          if len(image_mode) == 0
          else (len(image_mode),) + DEFAULT_SHAPE
      )
      dims = ("y", "x") if len(image_mode) == 0 else ("bands", "y", "x")
      if data_type is np.int8:
          data_arr = _create_test_int8_dataset(
              name="polar-ct",
              shape=shape,
              area=test_area,
              values=3,
              dims=dims,
          )
          data_arr[..., -1, :] = data_arr.attrs["_FillValue"]
      else:
          data_arr = _create_test_dataset(
              name="polar-ct",
              shape=shape,
              area=test_area,
              values=3.0,
              dims=dims,
          )
          data_arr[..., -1, :] = np.nan
      data_arr.attrs["platform_name"] = "NOAA-18"
      data_arr.attrs["sensor"] = {"avhrr-3"}
      data_arr.attrs["units"] = "1"
      data_arr.attrs["long_name"] = "SAFNWC PPS CT Cloud Type"
      data_arr.attrs["start_time"] = datetime(
          2023, 1, 16, 11, 12, 57, 500000
      )
      data_arr.attrs["end_time"] = datetime(
          2023, 1, 16, 11, 28, 1, 900000
      )
      data_arr.attrs["_satpy_id"] = dsid1
      return data_arr
  
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 7 for calling a global function with example usage: cloud_type_data_array2(test_area, data_type, image_mode) and returns: data_arr