in deploy_code/multipagepdfa2i_wrapup/gather_data.py [0:0]
def get_base_image_keys(bucket, keys):
temp = []
for key in keys:
if "/human/output.json" in key:
temp.append(key[:key.rfind("/human/output.json")])
if "/ai/output.json" in key:
temp.append(key[:key.rfind("/ai/output.json")])
return list(dict.fromkeys(temp))