<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parse_osm_nodes_paths(osm_data):
 """ Construct dicts of nodes and paths with key=osmid and value=dict of attributes. Parameters osm_data : dict JSON response from from the Overpass API Returns ------- nodes, paths : tuple """


    nodes = {}
    paths = {}
    for element in osm_data['elements']:
        if element['type'] == 'node':
            key = element['id']
            nodes[key] = get_node(element)
        elif element['type'] == 'way': #osm calls network paths 'ways'
            key = element['id']
            paths[key] = get_path(element)

    return nodes, paths