input: Write a python function to create and visualize a graph with 10 nodes using matplotlib and networkx.
  assert len(create_and_visualize_graph()) == 10
output: def create_and_visualize_graph():
      import networkx as nx
      import matplotlib.pyplot as plt
  
      # Create a graph with 10 nodes
      G = nx.Graph()
      G.add_nodes_from(range(10))
  
      # Add some edges to make it more interesting
      edges = [(0, 1), (1, 2), (2, 3), (3, 4), (4, 5), (5, 6), (6, 7), (7, 8), (8, 9), (9, 0), (0, 5), (2, 7)]
      G.add_edges_from(edges)
  
      # Draw the graph
      nx.draw(G, with_labels=True, node_color='lightblue', font_weight='bold')
      plt.show()
  
      return list(G.nodes)