def write_to_file(path, contents):
    """Write the given contents to a file

    :param path: Destination file
    :param contents: Desired contents of the file
    """
    with open(path, 'w') as f:
        f.write(contents)
