code: def test_string_input():
      pytest.raises(nx.NetworkXException, nx.is_graphical, [], "foo")
      pytest.raises(
          nx.NetworkXException, nx.is_graphical, ["red"], "hh"
      )
      pytest.raises(
          nx.NetworkXException, nx.is_graphical, ["red"], "eg"
      )
  
file_path: networkx/networkx/algorithms/tests/test_graphical.py
imports: import pytest
  import networkx
label_desc: Use image node_id 3 for calling a global function with example usage: test_string_input() without return types