<｜begin▁of▁sentence｜>### Instruction:
Given a random graph G generated by the Erdos-Renyi model with 100 nodes and a probability of having an edge between any two nodes of 0.05, how can you find and print the community memberships using the SCD model from the WWW '14 paper?
### Response:
import networkx as nx
from karateclub import SCD

# Create a graph
G = nx.erdos_renyi_graph(100, 0.05)

# Initialize SCD object
model = SCD(iterations=25, eps=1e-6, seed=42)

# Fit the model
model.fit(G)

# Get the memberships
memberships = model.get_memberships()

# Print the memberships
print(memberships)
<|EOT|>
