code: def test_hierarchy_cycle():
      G = nx.cycle_graph(5, create_using=nx.DiGraph())
      assert nx.flow_hierarchy(G) == 0.0
  
imports: import pytest
  import networkx
label_desc: Use image node_id 2 for calling a global function with example usage: test_hierarchy_cycle() without return types