code: def test_edge_width_sequence(edgelist):
      G = barbell.to_directed()
      pos = nx.random_layout(G)
      widths = (0.5, 2.0, 12.0)
      drawn_edges = nx.draw_networkx_edges(
          G, pos, edgelist=edgelist, width=widths
      )
      for fap, expected_width in zip(
          drawn_edges, itertools.cycle(widths)
      ):
          assert fap.get_linewidth() == expected_width
  
imports: import itertools
  import os
  import warnings
  import pytest
  import networkx
label_desc: Use image node_id 15 for calling a global function with example usage: test_edge_width_sequence(edgelist) without return types