code: def test_interval_inequality():
      assert (interval(1, 2) < interval(3, 4)) == (True, True)
      assert (interval(1, 2) < interval(2, 4)) == (None, True)
      assert (interval(1, 2) < interval(-2, 0)) == (False, True)
      assert (interval(1, 2) <= interval(2, 4)) == (True, True)
      assert (interval(1, 2) <= interval(1.5, 6)) == (None, True)
      assert (interval(2, 3) <= interval(1, 2)) == (None, True)
      assert (interval(2, 3) <= interval(1, 1.5)) == (False, True)
      assert (interval(1, 2, is_valid=False) <= interval(-2, 0)) == (
          False,
          False,
      )
      assert (interval(1, 2, is_valid=None) <= interval(-2, 0)) == (
          False,
          None,
      )
      assert (interval(1, 2) <= 1.5) == (None, True)
      assert (interval(1, 2) <= 3) == (True, True)
      assert (interval(1, 2) <= 0) == (False, True)
      assert (interval(5, 8) > interval(2, 3)) == (True, True)
      assert (interval(2, 5) > interval(1, 3)) == (None, True)
      assert (interval(2, 3) > interval(3.1, 5)) == (False, True)
  
      assert (interval(-1, 1) == 0) == (None, True)
      assert (interval(-1, 1) == 2) == (False, True)
      assert (interval(-1, 1) != 0) == (None, True)
      assert (interval(-1, 1) != 2) == (True, True)
  
      assert (interval(3, 5) > 2) == (True, True)
      assert (interval(3, 5) < 2) == (False, True)
      assert (interval(1, 5) < 2) == (None, True)
      assert (interval(1, 5) > 2) == (None, True)
      assert (interval(0, 1) > 2) == (False, True)
      assert (interval(1, 2) >= interval(0, 1)) == (True, True)
      assert (interval(1, 2) >= interval(0, 1.5)) == (None, True)
      assert (interval(1, 2) >= interval(3, 4)) == (False, True)
      assert (interval(1, 2) >= 0) == (True, True)
      assert (interval(1, 2) >= 1.2) == (None, True)
      assert (interval(1, 2) >= 3) == (False, True)
      assert (2 > interval(0, 1)) == (True, True)
      a = interval(-1, 1, is_valid=False) < interval(
          2, 5, is_valid=None
      )
      assert a == (True, False)
      a = interval(-1, 1, is_valid=None) < interval(
          2, 5, is_valid=False
      )
      assert a == (True, False)
      a = interval(-1, 1, is_valid=None) < interval(2, 5, is_valid=None)
      assert a == (True, None)
      a = interval(-1, 1, is_valid=False) > interval(
          -5, -2, is_valid=None
      )
      assert a == (True, False)
      a = interval(-1, 1, is_valid=None) > interval(
          -5, -2, is_valid=False
      )
      assert a == (True, False)
      a = interval(-1, 1, is_valid=None) > interval(
          -5, -2, is_valid=None
      )
      assert a == (True, None)
  
file_path: sympy/sympy/plotting/intervalmath/tests/test_intervalmath.py
imports: from sympy.plotting.intervalmath import interval
  from sympy.testing.pytest import raises
label_desc: Use image node_id 4 for calling a global function with example usage: test_interval_inequality() without return types