<｜begin▁of▁sentence｜>### Instruction:
Given the political blogs graph read from the GML file named polblogs.gml, can you apply both Louvain and Leiden community detection algorithms using the cdlib library and then compute the Normalized Mutual Information (NMI) to compare the similarity of the two resulting community detection partitions?
### Response:
import networkx as nx
from cdlib import algorithms, evaluation

# Load the political blogs graph
G = nx.read_gml('polblogs.gml')

# Detect communities using two different algorithms
c1 = algorithms.louvain(G)
c2 = algorithms.leiden(G)

# Calculate the Normalized Mutual Information between the two partitions
nmi = evaluation.normalized_mutual_information(c1, c2)

print('Normalized Mutual Information:', nmi.score)
<|EOT|>
