<｜begin▁of▁sentence｜>### Instruction:
Given the High-energy theory collaborations graph which you can read from a GML file named hep-th.gml, can you use the UMSTMO (Union of all Maximum Spanning Trees Overlapping) algorithm in cdlib to detect overlapping communities? Please provide a JSON representation of the resulting NodeClustering object.
### Response:
import networkx as nx
from cdlib import algorithms

# Creating a sample graph from High-energy theory collaborations data
G = nx.read_gml('hep-th.gml')

# Applying UMSTMO for overlapping community detection
communities = algorithms.umstmo(G)

# Generate a JSON representation of the NodeClustering object
communities_json = communities.to_json()

print(communities_json)
<|EOT|>
