<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 GraphMap
Getting Started
This notebook shows how to get started using GraphMap
Step1:  First let us import the module and create a GraphMap that persists in memory.
Step2:  Let us create two nodes with images of Seattle skyline and Mt. Tacoma from wikimedia.
Step3:  Now that we have created the 'seattle' node let's see how it looks
Step4:  Let us insert the 'tacoma' node into the 'seattle' node at the top right. The quad key we will use is 13. 1 correpsonds to the top right quadrant, inside that we will insert at bottom right hence 3.
Step5:  Let us see how the new_seattle_node looks after the insertion.
<ASSISTANT_TASK:>
Python Code:
%pylab inline
import sys
import os
sys.path.insert(0,'..')
import graphmap
Explanation: GraphMap
Getting Started
This notebook shows how to get started using GraphMap
End of explanation
from graphmap.graphmap_main import GraphMap
from graphmap.memory_persistence import MemoryPersistence
G = GraphMap(MemoryPersistence())
Explanation: First let us import the module and create a GraphMap that persists in memory.
End of explanation
from graphmap.graph_helpers import NodeLink
seattle_skyline_image_url = 'https://upload.wikimedia.org/wikipedia/commons/thumb/2/2f/Space_Needle002.jpg/640px-Space_Needle002.jpg'
mt_tacoma_image_url = 'https://upload.wikimedia.org/wikipedia/commons/thumb/a/a2/Mount_Rainier_from_the_Silver_Queen_Peak.jpg/1024px-Mount_Rainier_from_the_Silver_Queen_Peak.jpg'
seattle_node_link = NodeLink('seattle')
mt_tacoma_node_link = NodeLink('tacoma')
G.create_node(root_node_link=seattle_node_link, image_value_link=seattle_skyline_image_url)
G.create_node(root_node_link=mt_tacoma_node_link, image_value_link=mt_tacoma_image_url)
Explanation: Let us create two nodes with images of Seattle skyline and Mt. Tacoma from wikimedia.
End of explanation
seattle_pil_image_result = G.get_image_at_quad_key(root_node_link=seattle_node_link, resolution=256, quad_key='')
mt_tacoma_pil_image_result = G.get_image_at_quad_key(root_node_link=mt_tacoma_node_link, resolution=256, quad_key='')
import matplotlib.pyplot as plt
plt.imshow(seattle_pil_image_result.value)
plt.figure()
plt.imshow(mt_tacoma_pil_image_result.value)
Explanation: Now that we have created the 'seattle' node let's see how it looks
End of explanation
insert_quad_key = '13'
created_node_link_result = G.connect_child(root_node_link=seattle_node_link, 
                                    quad_key=insert_quad_key,
                                    child_node_link=mt_tacoma_node_link,)
print(created_node_link_result)
Explanation: Let us insert the 'tacoma' node into the 'seattle' node at the top right. The quad key we will use is 13. 1 correpsonds to the top right quadrant, inside that we will insert at bottom right hence 3.
End of explanation
created_node_link = created_node_link_result.value
new_seattle_image_result = G.get_image_at_quad_key(created_node_link, resolution=256, quad_key='')
new_seattle_image_result
plt.imshow(new_seattle_image_result.value)
Explanation: Let us see how the new_seattle_node looks after the insertion.
End of explanation
<END_TASK>