code: def null_safe_scalar_equals(left, right):
      if left in {NA, NaT, np.nan} or right in {NA, NaT, np.nan}:
          return left is right
      return left == right
  
file_path: cudf/python/cudf/cudf/testing/testing.py
imports: from __future__ import annotations
  from typing import Union
  import cupy
  import numpy
  import pandas
  import cudf
  from cudf._lib.unary import is_nan
  from cudf.api.types import is_categorical_dtype, is_numeric_dtype, is_string_dtype
  from cudf.core.missing import NA, NaT
label_desc: Use image node_id 6 for calling a global function with example usage: null_safe_scalar_equals(left, right) and returns: unknown, unknown