code: def _element_equal(x, y):
      """
      Performs a robust equality test between elements.
      """
      if isinstance(x, _np.ndarray) or isinstance(y, _np.ndarray):
          try:
              return (abs(_np.asarray(x) - _np.asarray(y)) < 1e-5).all()
          except:
              return False
      elif isinstance(x, dict):
          return (
              isinstance(y, dict)
              and _element_equal(x.keys(), y.keys())
              and all(_element_equal(x[k], y[k]) for k in x.keys())
          )
      elif isinstance(x, float):
          return abs(x - y) < 1e-5 * (abs(x) + abs(y))
      elif isinstance(x, (list, tuple)):
          return x == y
      else:
          return bool(x == y)
  
imports: import math
  import numpy
  import os
  import six
  import warnings
  import sys
  from coremltools.proto import Model_pb2
  from coremltools.models._deprecation import deprecated
  from .._deps import _HAS_SKLEARN
label_desc: Use image node_id 18 for calling a global function with example usage: _element_equal(x, y) and returns: unknown, unknown, False, unknown, unknown, bool