code: def test_draw_edges_arrowsize(arrowsize):
      G = nx.DiGraph([(0, 1), (0, 2), (1, 2)])
      pos = {0: (0, 0), 1: (0, 1), 2: (1, 0)}
      edges = nx.draw_networkx_edges(G, pos=pos, arrowsize=arrowsize)
  
      arrowsize = (
          itertools.repeat(arrowsize)
          if isinstance(arrowsize, int)
          else arrowsize
      )
  
      for fap, expected in zip(edges, arrowsize):
          assert isinstance(fap, mpl.patches.FancyArrowPatch)
          assert fap.get_mutation_scale() == expected
  
imports: import itertools
  import os
  import warnings
  import pytest
  import networkx
label_desc: Use image node_id 29 for calling a global function with example usage: test_draw_edges_arrowsize(arrowsize) without return types