code: def compare_datetime_arrays(x, y):
      """
      Compare datetime64 ndarrays, treating NaT values as equal.
      """
  
      return array_equal(x.view("int64"), y.view("int64"))
  
imports: from collections import OrderedDict
  from datetime import datetime
  from distutils.version import StrictVersion
  from warnings import catch_warnings, filterwarnings
  import six
  import numpy
  from numpy import array_equal, broadcast, busday_count, datetime64, diff, dtype, empty, flatnonzero, hstack, isnan, nan, vectorize, where
  from numpy.lib.stride_tricks import as_strided
  from toolz import flip
label_desc: Use image node_id 18 for calling a global function with example usage: compare_datetime_arrays(x, y) and returns: array_equal