code: def _combine_shared_info(shared_keys, info_dicts, average_times):
      shared_info = {}
      for key in shared_keys:
          values = [info[key] for info in info_dicts]
          if (
              "time" in key
              and isinstance(values[0], datetime)
              and average_times
          ):
              shared_info[key] = average_datetimes(values)
          elif _are_values_combinable(values):
              shared_info[key] = values[0]
      return shared_info
  
imports: from collections.abc import Collection
  from datetime import datetime
  from functools import partial, reduce
  from operator import eq, is_
  import numpy
  from satpy.writers.utils import flatten_dict
label_desc: Use image node_id 4 for calling a global function with example usage: _combine_shared_info(shared_keys, info_dicts, average_times) and returns: shared_info