code: def _combine_stacked_attrs(
      collected_attrs: Sequence[Mapping], combine_times: bool
  ) -> dict:
      attrs = combine_metadata(*collected_attrs)
      if combine_times and (
          "start_time" in attrs or "end_time" in attrs
      ):
          new_start, new_end = _get_combined_start_end_times(
              collected_attrs
          )
          if new_start:
              attrs["start_time"] = new_start
          if new_end:
              attrs["end_time"] = new_end
      return attrs
  
file_path: satpy/satpy/multiscene/_blend_funcs.py
imports: from __future__ import annotations
  from datetime import datetime
  from typing import Callable, Iterable, Mapping, Optional, Sequence
  import pandas
  import xarray
  from dask import array
  from satpy.dataset import combine_metadata
label_desc: Use image node_id 8 for calling a global function with example usage: _combine_stacked_attrs(collected_attrs, combine_times) and returns: attrs