code: def test_pygraphviz_layout_root(self, root):
      # NOTE: test depends on layout prog being deterministic
      G = nx.complete_graph(5)
      A = nx.nx_agraph.to_agraph(G)
      # Get layout with root arg is not None
      pygv_layout = nx.nx_agraph.pygraphviz_layout(
          G, prog="circo", root=root
      )
      # Equivalent layout directly on AGraph
      A.layout(args=f"-Groot={root}", prog="circo")
      # Parse AGraph layout
      a1_pos = tuple(
          float(v) for v in dict(A.get_node("1").attr)["pos"].split(",")
      )
      assert pygv_layout[1] == a1_pos
  
imports: import warnings
  import pytest
  import networkx
  from networkx.utils import edges_equal, graphs_equal, nodes_equal
label_desc: Use image node_id 22 for calling the TestAGraph obj's underlying member method code with example usage: obj.test_pygraphviz_layout_root(root) without return types