code: def test_empty_graph_raises(f):
      G = nx.Graph()
      with pytest.raises(
          nx.NetworkXPointlessConcept, match="Graph has no nodes"
      ):
          f(G)
  
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 2 for calling a global function with example usage: test_empty_graph_raises(f) without return types