d = cm.new_child() # Create nested child context
print(d) # ChainMap({}, {'Name': 'Lin', 'Age': 39}, {'maker': 'Honda', 'year': 2016})
d.maps[1] # {'Name': 'Lin', 'Age': 39}, get the second map
d.maps[0] = {'ID': 970196897} # assign a map to a child
print(d) # ChainMap({'ID': 970196897}, {'Name': 'Lin', 'Age': 39}, {'maker': 'Honda', 'year': 2016})
# parents, returning a new ChainMap containing all of the maps in the current instance except the first one
print(d.parents) # ChainMap({'Name': 'Lin', 'Age': 39}, {'maker': 'Honda', 'year': 2016})
d['x'] = 1 # add key and value to the current context
print(d) # ChainMap({'ID': 970196897, 'x': 1}, {'Name': 'Lin', 'Age': 39}, {'maker': 'Honda', 'year': 2016})
del d['x']
print(d) # ChainMap({'ID': 970196897}, {'Name': 'Lin', 'Age': 39}, {'maker': 'Honda', 'year': 2016})