code: def test_edge_colormap():
      colors = range(barbell.number_of_edges())
      nx.draw_spring(
          barbell,
          edge_color=colors,
          width=4,
          edge_cmap=plt.cm.Blues,
          with_labels=True,
      )
  
imports: import itertools
  import os
  import warnings
  import pytest
  import networkx
label_desc: Use image node_id 3 for calling a global function with example usage: test_edge_colormap() without return types