code: def _all_arrays_equal(arrays):
      """Check if the arrays are equal.
  
      If the arrays are lazy, just check if they have the same identity.
      """
      if hasattr(arrays[0], "compute"):
          return _all_identical(arrays)
      return _all_values_equal(arrays)
  
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 11 for calling a global function with example usage: _all_arrays_equal(arrays) and returns: _all_values_equal, _all_identical