<｜begin▁of▁sentence｜>### Instruction:
Given a graph which you can read from graph_example.gml, can you check if the graph contains loop edges and print the results for each edge?
### Response:
from igraph import Graph

# Load a graph from a file
graph = Graph.Read_GML('graph_example.gml')

# Check if there is a loop edge in the graph
loops_list = graph.is_loop(graph.es)

# Output the result
for idx, has_loop in enumerate(loops_list):
    print(f'Edge {graph.es[idx].tuple} contains a loop: {has_loop}')
<|EOT|>
