def METHOD_NAME(list_of_runs):
    with open('descriptor_file.csv', 'w') as f:
        f.write('runs,')
        n_cols = len(list_of_runs[0].descriptor_names)
        for i, names in enumerate(list_of_runs[0].descriptor_names):
            if i < (n_cols-1):
                f.write(names+',')
            else:
                f.write(names+'\n')
        for runs in list_of_runs:
            try:
                f.write(runs.name)
                for properties in runs.descriptors:
                    f.write(','+str(properties))
                f.write('\n')
            except AttributeError:
                pass