code: def _all_values_equal(values):
      try:
          return _all_close(values)
      except (ValueError, TypeError):
          # In case of object type arrays (e.g. datetime) _all_close fails,
          # but _all_equal succeeds.
          return _all_equal(values)
  
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 12 for calling a global function with example usage: _all_values_equal(values) and returns: _all_close, _all_equal