code: def _array_equivalent_object(
      left: np.ndarray, right: np.ndarray, strict_nan: bool
  ):
      if not strict_nan:
          # isna considers NaN and None to be equivalent.
  
          return lib.array_equivalent_object(
              ensure_object(left), ensure_object(right)
          )
  
      for left_value, right_value in zip(left, right):
          if left_value is NaT and right_value is not NaT:
              return False
  
          elif (
              left_value is libmissing.NA
              and right_value is not libmissing.NA
          ):
              return False
  
          elif isinstance(left_value, float) and np.isnan(left_value):
              if not isinstance(right_value, float) or not np.isnan(
                  right_value
              ):
                  return False
          else:
              try:
                  if np.any(np.asarray(left_value != right_value)):
                      return False
              except TypeError as err:
                  if "boolean value of NA is ambiguous" in str(err):
                      return False
                  raise
              except ValueError:
                  # numpy can raise a ValueError if left and right cannot be
                  # compared (e.g. nested arrays)
                  return False
      return True
  
imports: from __future__ import annotations
  from decimal import Decimal
  from functools import partial
  from typing import TYPE_CHECKING, overload
  import numpy
  from pandas._config import get_option
  from pandas._libs import lib
  import pandas._libs.missing
  from pandas._libs.tslibs import NaT, iNaT
  from pandas.core.dtypes.common import DT64NS_DTYPE, TD64NS_DTYPE, ensure_object, is_bool_dtype, is_categorical_dtype, is_complex_dtype, is_dtype_equal, is_extension_array_dtype, is_float_dtype, is_integer_dtype, is_object_dtype, is_scalar, is_string_or_object_np_dtype, needs_i8_conversion
  from pandas.core.dtypes.dtypes import CategoricalDtype, DatetimeTZDtype, ExtensionDtype, IntervalDtype, PeriodDtype
  from pandas.core.dtypes.generic import ABCDataFrame, ABCExtensionArray, ABCIndex, ABCMultiIndex, ABCSeries
  from pandas.core.dtypes.inference import is_list_like
label_desc: Use image node_id 21 for calling a global function with example usage: _array_equivalent_object(left, right, strict_nan) and returns: True, lib, False, False, False, False, False, False