code: def _create_test_dataset(
      name, shape=DEFAULT_SHAPE, area=None, values=None, dims=("y", "x")
  ):
      """Create a test DataArray object."""
      if values:
          return xr.DataArray(
              da.ones(shape, dtype=np.float32, chunks=shape) * values,
              dims=dims,
              attrs={
                  "name": name,
                  "area": area,
                  "_satpy_id_keys": local_id_keys_config,
              },
          )
  
      return xr.DataArray(
          da.zeros(shape, dtype=np.float32, chunks=shape),
          dims=dims,
          attrs={
              "name": name,
              "area": area,
              "_satpy_id_keys": local_id_keys_config,
          },
      )
  
file_path: satpy/satpy/tests/multiscene_tests/test_utils.py
imports: import dask.array
  import numpy
  import xarray
  from pyresample.geometry import AreaDefinition
  from satpy.dataset.dataid import ModifierTuple, WavelengthRange
label_desc: Use image node_id 4 for calling a global function with example usage: _create_test_dataset(name, shape, area, values, dims) and returns: xr, xr