code: def parse_osm_nodes_paths(osm_data):
      
  
      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
docs: 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