def METHOD_NAME(path: Path, locales_list: T.List[str]):
    "Generate markdown index including listed locales. None means all locales"
    locales_list = locales_list or AVAILABLE_LOCALES
    with Path(path).open("w") as outfile:
        def output(*args, **kwargs):
            print(*args, **kwargs, file=outfile)
        locales = locales_as_markdown_links(None, locales_list)
        if locales:
            output("## Fake Data Locales\n")
            output(
                "Learn more about Snowfakery localization in the [Fake Data Tutorial](fakedata.md#localization)\n"
            )
            output(locales)