code: def test_average_connectivity_directed():
      G = nx.DiGraph([(1, 3), (1, 4), (1, 5)])
      for flow_func in flow_funcs:
          errmsg = f"Assertion failed in function: {flow_func.__name__}"
          assert nx.average_node_connectivity(G) == 0.25, errmsg
  
imports: import itertools
  import pytest
  import networkx
  from networkx.algorithms import flow
  from networkx.algorithms.connectivity import local_edge_connectivity, local_node_connectivity
label_desc: Use image node_id 3 for calling a global function with example usage: test_average_connectivity_directed() without return types