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