code: def _check_stacked_metadata(
      data_arr: xr.DataArray, exp_name: str
  ) -> None:
      assert data_arr.attrs["units"] == "1"
      assert data_arr.attrs["name"] == exp_name
      if "_FillValue" in data_arr.attrs:
          assert data_arr.attrs["_FillValue"] == 255
          assert data_arr.attrs["valid_range"] == [1, 15]
  
      expected_area = _create_test_area()
      assert data_arr.attrs["area"] == expected_area
  
      # these metadata items don't match between all inputs
      assert "sensor" not in data_arr.attrs
      assert "platform_name" not in data_arr.attrs
      assert "long_name" not in data_arr.attrs
  
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 12 for calling a global function with example usage: _check_stacked_metadata(data_arr, exp_name) without return types