def METHOD_NAME(*, index: int, n_children: int):
    subdirectory = tmp_path / f"sub{index:d}"
    subdirectory.mkdir()
    for i in range(n_children):
        subdirectory.joinpath(f"file{i:d}").touch()