class_docstr: Unit tests for :func:`~networkx.random_geometric_graph`
class_docstr_tok: ["Unit","tests","for",":","func",":","`","~networkx.random_geometric_graph","`"]
code: def test_pos_name(self):
      G = nx.random_geometric_graph(
          50, 0.25, seed=42, pos_name="coords"
      )
      assert all(len(d["coords"]) == 2 for n, d in G.nodes.items())
  
imports: import math
  import random
  from itertools import combinations
  import pytest
  import networkx
label_desc: Use image node_id 5 for calling the TestRandomGeometricGraph obj's underlying member method code with example usage: obj.test_pos_name() without return types