<｜begin▁of▁sentence｜>### Instruction:
Given a graph with a set of edges, how do you check if any specific edge is a loop using the is_loop function in igraph?
### Response:
from igraph import Graph

# Create a graph with a loop and a regular edge
g = Graph(edges=[(0, 0), (0, 1)])

# Check for loops in edges
eid_of_loop = 0  # Assuming edge ID 0 corresponds to the loop
is_loop_present = g.is_loop(eid_of_loop)

# Print whether the graph contains a loop
print('Graph contains a loop:' if is_loop_present else 'Graph does not contain a loop')
<|EOT|>
