code: def test_read_edgelist_with_data(data, extra_kwargs, expected):
      bytesIO = io.BytesIO(data.encode("utf-8"))
      G = nx.read_edgelist(bytesIO, nodetype=int, **extra_kwargs)
      assert edges_equal(G.edges(data=True), expected)
  
imports: import io
  import textwrap
  import pytest
  import networkx
  from networkx.utils import edges_equal, graphs_equal, nodes_equal
label_desc: Use image node_id 3 for calling a global function with example usage: test_read_edgelist_with_data(data, extra_kwargs, expected) without return types