code: def test_lex_order():
      assert lex((1, 2, 3)) == (1, 2, 3)
      assert str(lex) == "lex"
  
      assert lex((1, 2, 3)) == lex((1, 2, 3))
  
      assert lex((2, 2, 3)) > lex((1, 2, 3))
      assert lex((1, 3, 3)) > lex((1, 2, 3))
      assert lex((1, 2, 4)) > lex((1, 2, 3))
  
      assert lex((0, 2, 3)) < lex((1, 2, 3))
      assert lex((1, 1, 3)) < lex((1, 2, 3))
      assert lex((1, 2, 2)) < lex((1, 2, 3))
  
      assert lex.is_global is True
      assert lex == LexOrder()
      assert lex != grlex
  
file_path: sympy/sympy/polys/tests/test_orderings.py
imports: from sympy.polys.orderings import monomial_key, lex, grlex, grevlex, ilex, igrlex, LexOrder, InverseOrder, ProductOrder, build_product_order
  from sympy.abc import x, y, z, t
  from sympy.core import S
  from sympy.testing.pytest import raises
label_desc: Use image node_id 1 for calling a global function with example usage: test_lex_order() without return types