class_docstr: Unit tests for :func:`~networkx.thresholded_random_geometric_graph`
class_docstr_tok: ["Unit","tests","for",":","func",":","`","~networkx.thresholded_random_geometric_graph","`"]
docstr: Tests using values other than sequential numbers as node IDs.
docstr_tok: ["Tests","using","values","other","than","sequential","numbers","as","node","IDs","."]
code: def test_node_names(self):
      """Tests using values other than sequential numbers as node IDs."""
      import string
  
      nodes = list(string.ascii_lowercase)
      G = nx.thresholded_random_geometric_graph(
          nodes, 0.25, 0.1, seed=42
      )
      assert len(G) == len(nodes)
  
      for u, v in combinations(G, 2):
          # Adjacent vertices must be within the given distance.
          if v in G[u]:
              assert (
                  math.dist(G.nodes[u]["pos"], G.nodes[v]["pos"])
                  <= 0.25
              )
  
imports: import math
  import random
  from itertools import combinations
  import pytest
  import networkx
label_desc: Use image node_id 4 for calling the TestThresholdedRandomGeometricGraph obj's underlying member method code with example usage: obj.test_node_names() without return types