code: def test_exceptions():
      test = Graph()
      test.add_node("a")
      pytest.raises(NetworkXError, asyn_fluidc, test, "hi")
      pytest.raises(NetworkXError, asyn_fluidc, test, -1)
      pytest.raises(NetworkXError, asyn_fluidc, test, 3)
      test.add_node("b")
      pytest.raises(NetworkXError, asyn_fluidc, test, 1)
  
file_path: networkx/networkx/algorithms/community/tests/test_asyn_fluid.py
imports: import pytest
  import networkx
  from networkx import Graph, NetworkXError
  from networkx.algorithms.community import asyn_fluidc
label_desc: Use image node_id 2 for calling a global function with example usage: test_exceptions() without return types