<｜begin▁of▁sentence｜>### Instruction:
Given a Newman-Watts-Strogatz graph with 100 nodes, connection to 3 nearest neighbors, and a probability of 0.5 for adding new edges, how can you use the EgoNetSplitter model to identify overlapping clusters?
### Response:
import networkx as nx
from karateclub import EgoNetSplitter

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

# Initialize EgoNetSplitter with default parameters
ego_net_splitter = EgoNetSplitter()

# Fit the model on the graph
ego_net_splitter.fit(G)

# Get the membership of the nodes
memberships = ego_net_splitter.get_memberships()

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