def write_done_file(folder: str, args_str: str, object_names: list[str]):
    """Write a file to signify completion.

    This the done file includes the arguments to processing and
    a list of objects that were processed.

    Args:
        folder (str): Folder to write the done file to
        args_str (str): String representation of arguments
        object_names (List[str]): List of objects to convert to MDS format
    """
    with open(os.path.join(folder, DONE_FILENAME), 'w') as done_file:
        log.info(f'Writing done file.')
        done_file.write('\n'.join([args_str] + object_names) + '\n')
    log.info(f'Done file written successfully')
Write a file to signify completion.

    This the done file includes the arguments to processing and
    a list of objects that were processed.

    Args:
        folder (str): Folder to write the done file to
        args_str (str): String representation of arguments
        object_names (List[str]): List of objects to convert to MDS format
    
llmfoundry/command_utils/data_prep/convert_text_to_mds.py