<｜begin▁of▁sentence｜>### Instruction:
Given a famous Zachary's Karate Club graph and a list of cluster indices representing the membership of each node in the graph, can you use the VertexClustering class to create a VertexClustering object that reflects the provided cluster memberships?
### Response:
from igraph import Graph, VertexClustering

# Assuming 'memberships' is a list acquired from some process that represents cluster indices:
# e.g., memberships = [0, 1, 0, 1, 2, 2] where each index corresponds to the cluster index of the vertex
g = Graph.Famous('Zachary')
clustering = VertexClustering(g, membership=memberships)
print(clustering)
<|EOT|>
