<｜begin▁of▁sentence｜>### Instruction:
Given a famous graph called 'Zachary's karate club graph', can you create a vertex clustering based on an attribute called 'label' (assuming it exists), get the subgraph of the first cluster, and print out summaries for both the clustering and the subgraph?
### Response:
import igraph as ig

# Create a graph
g = ig.Graph.Famous('Zachary')

# Calculate the community structure based on the 'label' attribute
clustering = ig.VertexClustering.FromAttribute(g, 'label')

# Get the subgraph for the first cluster
subgraph = clustering.subgraph(0)

# Print the summary of the clustering and the subgraph
print(clustering.summary())
print(subgraph.summary())
<|EOT|>
