<｜begin▁of▁sentence｜>### Instruction:
Given a Turan Graph, which is a complete multipartite graph with 10 nodes divided into 3 partitions, how can you generate and visualize this graph using NetworkX?
### Response:
import networkx as nx

# Generate a Turan Graph with n nodes and r partitions
n = 10  # number of nodes
r = 3   # number of partitions

# Creating the Turan graph
T = nx.turan_graph(n, r)

# Draw the graph
import matplotlib.pyplot as plt
nx.draw(T, with_labels=True, node_color='lightblue', edge_color='gray')
plt.show()
<|EOT|>
