<｜begin▁of▁sentence｜>### Instruction:
Given a 'karate_club_graph', how can you use the SCD model from the WWW '14 paper to find community clusters and retrieve the cluster memberships of each node?
### Response:
import networkx as nx
from karateclub import SCD

# Generate a graph
G = nx.karate_club_graph()

# Initialize SCD with default parameters
model = SCD()

# Fit the model
model.fit(G)

# Get the membership dictionary
memberships = model.get_memberships()

print(memberships)
<|EOT|>
