code: def test_HeapElement_gtlt_tied_priority():
      bar = _HeapElement(1, "a")
      foo = _HeapElement(1, "b")
      assert foo > bar
      assert bar < foo
  
imports: import pytest
  from networkx.utils.mapped_queue import MappedQueue, _HeapElement
label_desc: Use image node_id 2 for calling a global function with example usage: test_HeapElement_gtlt_tied_priority() without return types