code: def test_view_pygraphviz_path(self, tmp_path):
      G = nx.complete_graph(3)
      input_path = str(tmp_path / "graph.png")
      out_path, A = nx.nx_agraph.view_pygraphviz(
          G, path=input_path, show=False
      )
      assert out_path == input_path
      # Ensure file is not empty
      with open(input_path, "rb") as fh:
          data = fh.read()
      assert len(data) > 0
  
imports: import warnings
  import pytest
  import networkx
  from networkx.utils import edges_equal, graphs_equal, nodes_equal
label_desc: Use image node_id 9 for calling the TestAGraph obj's underlying member method code with example usage: obj.test_view_pygraphviz_path(tmp_path) without return types