<｜begin▁of▁sentence｜>### Instruction:
Given a Newman-Watts-Strogatz small-world graph with 100 nodes, each connected to its 3 nearest neighbors and with a re-wiring probability of 0.1, how can you use the EgoNetSplitter model to find overlapping community memberships?
### Response:
import networkx as nx
from karateclub import EgoNetSplitter

# Create a graph
G = nx.newman_watts_strogatz_graph(100, 3, 0.1)

# Initialize EgoNetSplitter model
model = EgoNetSplitter(resolution=1.0, seed=42, weight='weight')

# Fit the model
model.fit(G)

# Get the cluster memberships
memberships = model.get_memberships()

print(memberships)
<|EOT|>
