code: def test_infinity_against_nan(self):
      Inf = libalgos.Infinity()
      NegInf = libalgos.NegInfinity()
  
      assert not Inf > np.nan
      assert not Inf >= np.nan
      assert not Inf < np.nan
      assert not Inf <= np.nan
      assert not Inf == np.nan
      assert Inf != np.nan
  
      assert not NegInf > np.nan
      assert not NegInf >= np.nan
      assert not NegInf < np.nan
      assert not NegInf <= np.nan
      assert not NegInf == np.nan
      assert NegInf != np.nan
  
file_path: pandas/pandas/tests/libs/test_libalgos.py
imports: from datetime import datetime
  from itertools import permutations
  import numpy
  from pandas._libs import algos
  import pandas._testing
label_desc: Use image node_id 2 for calling the TestInfinity obj's underlying member method code with example usage: obj.test_infinity_against_nan() without return types