def parse_path_data(path_data):
 path = []
 for item in path_data:
  usage_key = UsageKey.from_string(item[0])
  usage_key = usage_key.replace(course_key=modulestore().fill_in_run(usage_key.course_key))
  path.append(PathItem(usage_key, item[1]))
 return path

def parse_path_data ( path_data ) : path = [ ] for item in path_data : usage_key = UsageKey . from_string ( item [ 0 ] ) usage_key = usage_key . replace ( course_key = modulestore ( ) . fill_in_run ( usage_key . course_key ) ) path . append ( PathItem ( usage_key , item [ 1 ] ) ) return path
return a list of pathitems constructed from parsing path_data .