code: def timeseries(datasets):
      """Expand dataset with and concatenate by time dimension."""
      expanded_ds = []
      for ds in datasets:
          if "time" not in ds.dims:
              tmp = ds.expand_dims("time")
              tmp.coords["time"] = pd.DatetimeIndex(
                  [ds.attrs["start_time"]]
              )
          else:
              tmp = ds
          expanded_ds.append(tmp)
  
      res = xr.concat(expanded_ds, dim="time")
      res.attrs = combine_metadata(*[x.attrs for x in expanded_ds])
      return res
  
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 10 for calling a global function with example usage: timeseries(datasets) and returns: res