code: def test_compare_with_equal_nulls():
      # We want to make sure two NaNs are considered the same
      # and dropped where applicable
      s1 = pd.Series(["a", "b", np.nan])
      s2 = pd.Series(["x", "b", np.nan])
  
      result = s1.compare(s2)
      expected = pd.DataFrame([["a", "x"]], columns=["self", "other"])
      tm.assert_frame_equal(result, expected)
  
file_path: pandas/pandas/tests/series/methods/test_compare.py
imports: import numpy
  import pytest
  import pandas
  import pandas._testing
label_desc: Use image node_id 3 for calling a global function with example usage: test_compare_with_equal_nulls() without return types