code: def test_invalid_name():
      with pytest.raises(ValueError):
          triad_graph("bogus")
  
imports: import pytest
  from networkx import triad_graph
label_desc: Use image node_id 2 for calling a global function with example usage: test_invalid_name() without return types