<｜begin▁of▁sentence｜>### Instruction:
Given an igraph Graph object with predefined vertex attributes 'label' and 'color', can you collect and print the attributes for a vertex with a specific index (e.g., index 1)?
### Response:
import igraph as ig

# Create a graph with some vertex attributes
g = ig.Graph(edges=[(0, 1), (1, 2), (2, 3)], vertex_attrs={'label':['A', 'B', 'C', 'D'], 'color':['blue', 'green', 'red', 'yellow']})

# Collect the attributes for vertex with index 1
attributes = g.vs.attribute_collector()[1]

# Print collected attributes for vertex 1
print('Attributes of vertex 1:', attributes)
<|EOT|>
