code: def _is_equal(a, b, comp_func):
      res = comp_func(a, b)
      if _is_array(res):
          return res.all()
      return res
  
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 17 for calling a global function with example usage: _is_equal(a, b, comp_func) and returns: res, res