code: def test_empty_graph_raises(f):
      G = nx.Graph()
      with pytest.raises(
          nx.NetworkXPointlessConcept, match="Connectivity is undefined"
      ):
          f(G)
  
imports: import collections
  import pytest
  import networkx
label_desc: Use image node_id 1 for calling a global function with example usage: test_empty_graph_raises(f) without return types