<｜begin▁of▁sentence｜>### Instruction:
As an Educational Psychologist who applies psychological principles and research to understand and improve educational processes, learning outcomes, and student behavior, imagine you are conducting a study on the social network interactions among students in a school. You have collected data on their relationships and now aim to identify different social communities within the network using the Louvain method available in cdlib.

Specifically, you need to analyze the Les Miserables Graph, representing the students' connections, which is stored in a gml file named lesmis.gml. Your task is to apply the Louvain method for community detection and then calculate the fraction of community nodes that participate in at least one triad (triangle participation ratio). 
You should print the percentage of community nodes that are part of a triad to further understand the cohesive relationships within these social groups.
### Response:
import networkx as nx
from cdlib import algorithms, evaluation

# Load the graph
G = nx.read_gml('lesmis.gml')

# Perform community detection
communities = algorithms.louvain(G)

# Evaluate triangle participation ratio
triangle_ratio = evaluation.triangle_participation_ratio(G, communities)

# Print the result
print(triangle_ratio)
<|EOT|>
