<｜begin▁of▁sentence｜>### Instruction:
Given a graph with vertices and edges, and after adding attributes 'label' with values ['A', 'B', 'C', 'D', 'E'] and 'color' with values ['red', 'blue', 'green', 'yellow', 'black'] to the vertices, how can you use the 'attribute_names' method in igraph to retrieve and print the names of all vertex attributes?
### Response:
import igraph as ig

# Create a graph and add some vertex attributes
g = ig.Graph(edges=[(0, 1), (1, 2), (2, 3), (3, 4)])
g.vs['label'] = ['A', 'B', 'C', 'D', 'E']
g.vs['color'] = ['red', 'blue', 'green', 'yellow', 'black']

# Get the attribute names of the vertices
attribute_names = g.vs.attribute_names()

# Print the names of the vertex attributes
print(attribute_names)
<|EOT|>
