code: def test_is_distance_regular(self):
      assert nx.is_distance_regular(nx.icosahedral_graph())
      assert nx.is_distance_regular(nx.petersen_graph())
      assert nx.is_distance_regular(nx.cubical_graph())
      assert nx.is_distance_regular(nx.complete_bipartite_graph(3, 3))
      assert nx.is_distance_regular(nx.tetrahedral_graph())
      assert nx.is_distance_regular(nx.dodecahedral_graph())
      assert nx.is_distance_regular(nx.pappus_graph())
      assert nx.is_distance_regular(nx.heawood_graph())
      assert nx.is_distance_regular(nx.cycle_graph(3))
      # no distance regular
      assert not nx.is_distance_regular(nx.path_graph(4))
  
file_path: networkx/networkx/algorithms/tests/test_distance_regular.py
imports: import pytest
  import networkx
  from networkx import is_strongly_regular
label_desc: Use image node_id 1 for calling the TestDistanceRegular obj's underlying member method code with example usage: obj.test_is_distance_regular() without return types