<｜begin▁of▁sentence｜>### Instruction:
Given the Astrophysics collaborations graph 'astro-ph.gml', how can the belief propagation community detection algorithm in cdlib be used to perform community detection, and how can the average embeddedness of nodes within the community be computed?
### Response:
import networkx as nx
from cdlib import algorithms

# Create a graph
G = nx.read_gml('astro-ph.gml')

# Apply the belief propagation community detection algorithm
communities = algorithms.belief(G)

avg_embeddedness = communities.avg_embeddedness()

print('Average embeddedness:', avg_embeddedness)
<|EOT|>
