class_docstr: Unit tests for :func:`~networkx.thresholded_random_geometric_graph`
class_docstr_tok: ["Unit","tests","for",":","func",":","`","~networkx.thresholded_random_geometric_graph","`"]
code: def test_pos_name(self):
      trgg = nx.thresholded_random_geometric_graph
      G = trgg(50, 0.25, 0.1, seed=42, pos_name="p", weight_name="wt")
      assert all(len(d["p"]) == 2 for n, d in G.nodes.items())
      assert all(d["wt"] > 0 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 6 for calling the TestThresholdedRandomGeometricGraph obj's underlying member method code with example usage: obj.test_pos_name() without return types