<｜begin▁of▁sentence｜>### Instruction:
Given a GEXF file containing a graph with nodes that have a 'label' attribute, can you show how to read the graph into NetworkX, relabel its nodes using the 'label' attribute, and print the resulting graph with the new labels?
### Response:
import networkx as nx

# Read a GEXF file into a NetworkX graph object
G = nx.read_gexf('path_to_gexf_file.gexf')

# Relabel graph using 'label' node keyword for node label
H = nx.relabel_gexf_graph(G)

# Print the graph to see the relabeled nodes
print(H.nodes(data=True))
<|EOT|>
