def METHOD_NAME(target_dir):
    pages = os.path.join(target_dir, "pages")
    subdir1 = os.path.join(target_dir, "pages", "subdir1")
    subdir2 = os.path.join(target_dir, "pages", "subdir2")
    subdir3 = os.path.join(target_dir, "pages", "subdir3")
    makedirs(subdir1)
    makedirs(subdir2)
    makedirs(subdir3)
    with io.open(os.path.join(pages, "page0.txt"), "w+", encoding="utf8") as outf:
        outf.write(
            """\