code: def test_two_nodes():
      test = Graph()
  
      test.add_edge("a", "b")
  
      # ground truth
      ground_truth = {frozenset(["a"]), frozenset(["b"])}
  
      communities = asyn_fluidc(test, 2)
      result = {frozenset(c) for c in communities}
      assert result == ground_truth
  
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 4 for calling a global function with example usage: test_two_nodes() without return types