<｜begin▁of▁sentence｜>### Instruction:
A network analyst is working with a social network where individuals are represented as nodes and their interactions are represented as edges. The original data is in a NetworkX graph format, and the analyst needs to convert this graph into an array-like shared data type that is compatible with graspologic's graph processing functions. How can the import_graph function be used to transform this NetworkX graph while ensuring the data type is suitable for further analysis within graspologic?
### Response:
import networkx as nx
from graspologic.utils import import_graph

# Create a sample NetworkX graph
G = nx.Graph()
G.add_edges_from([(1, 2), (1, 3), (2, 4), (3, 4)])

# Use the import_graph function
g = import_graph(G, copy=True)

# g now represents the graph shared data type which can be used within graspologic
print(g)
<|EOT|>
