code: def test_path():
      G = nx.DiGraph()
      nx.add_path(G, range(5))
      assert nx.is_branching(G)
      assert nx.is_arborescence(G)
  
imports: import pytest
  import networkx
label_desc: Use image node_id 6 for calling a global function with example usage: test_path() without return types