Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def parse_yaml(y):
y = load_yaml(y)
rec_ids = {}
for entry in y:
key = entry["features"]["recording_id"]
if key not in rec_ids.keys():
rec_ids[key] = [entry["features"]["storage_path"]]
else:
rec_ids[key].append(entry["features"]["storage_path"])
return rec_ids