def METHOD_NAME(path):
    with open(path) as f:
        data = {}
        # return only unique input_path (no duplicates) to avoid downloading files again
        for line in f.readlines():
            ds_id, input_path = line.strip().split('\t')
            data[input_path] = ds_id
    datasets = {}
    for input_path, ds_id in data.items():
        _, key = input_path.replace('s3a://', '').split('/')
        key = 'imzml/' + key
        datasets[ds_id] = {'bucket': BUCKET, 'key': key}
    return dict(sorted(datasets.items()))