<｜begin▁of▁sentence｜>### Instruction:
Given a simple adjacency matrix represented as a 2D numpy array `[[0, 1], [1, 0]]`, how can you create a NetworkX graph and print its edges with associated attributes using the `from_numpy_array` function?
### Response:
import numpy as np
import networkx as nx

# Define a 2D numpy array as an adjacency matrix
A = np.array([[0, 1], [1, 0]])

# Create a graph from the adjacency matrix
G = nx.from_numpy_array(A)

# Print the edges of the graph with edge attributes
print(G.edges(data=True))
<|EOT|>
