class_docstr: Unit tests for the approximate diameter function
  :func:`~networkx.algorithms.approximation.distance_measures.diameter`.
docstr: Test a complete undirected graph.
code: def test_complete_undirected_graph(self):
      """Test a complete undirected graph."""
      graph = nx.complete_graph(10)
      assert diameter(graph) == 1
  
file_path: networkx/networkx/algorithms/approximation/tests/test_distance_measures.py
imports: import pytest
  import networkx
  from networkx.algorithms.approximation import diameter
label_desc: Use image node_id 4 for calling the TestDiameter obj's underlying member method code with example usage: obj.test_complete_undirected_graph() without return types