<｜begin▁of▁sentence｜>### Instruction:
Using the `random_internet_as_graph` function from NetworkX, generate an undirected graph resembling the Internet AS (Autonomous System) network with 1500 nodes. What are the number of nodes and edges in the resultant graph, and what are the types of the first 5 nodes?
### Response:
import networkx as nx

# Use random_internet_as_graph to generate a graph resembling the Internet AS network
G = nx.random_internet_as_graph(1500, seed=42)

# Print the number of nodes and edges in the graph
print('Number of nodes:', G.number_of_nodes())
print('Number of edges:', G.number_of_edges())

# Inspect the types of some nodes
for i, node in enumerate(G.nodes(data=True), start=1):
    print('Node', i, ':', node)
    if i == 5: # Limit the output to first 5 nodes
        break
<|EOT|>
