def METHOD_NAME(file_dict):
    """
    Convenience method for writing a bunch of files to a temporary directory.
    Dict format is "filename": "text content"
    If content is another dict, it is created recursively in the same manner.
    writeFiles({'test.txt': 'contents of text file'})
    :type file_dict: dict
    :rtype: pathlib.Path
    :return: Created temporary directory path
    """
    containing_dir = tempfile.mkdtemp(suffix="neotestrun")
    _write_files_to_dir(containing_dir, file_dict)
    def remove_if_exists(path):
        if os.path.exists(path):
            shutil.rmtree(path)
    atexit.register(remove_if_exists, containing_dir)
    return pathlib.Path(containing_dir)