"""Utils.""" import os def write_file_to_disk(file_path, file_name, file_data): """Write file to disk. Args: file_path (str): the directory in which the file will be written file_name (str): the name of the file in the directory file_data (str): the string contents to be written to disk Returns: """ with open(os.path.join(file_path, file_name), 'wb') as file: file.write(file_data.encode())