code: def test_spiral_layout_equidistant(self):
      G = nx.path_graph(10)
      pos = nx.spiral_layout(G, equidistant=True)
      # Extract individual node positions as an array
      p = np.array(list(pos.values()))
      # Elementwise-distance between node positions
      dist = np.linalg.norm(p[1:] - p[:-1], axis=1)
      assert np.allclose(np.diff(dist), 0, atol=1e-3)
  
imports: import pytest
  import networkx
label_desc: Use image node_id 28 for calling the TestLayout obj's underlying member method code with example usage: obj.test_spiral_layout_equidistant() without return types