async def setup() -> None:
    """Create an IndexTemplate and save it into elasticsearch."""
    index_template = Post._index.as_composable_template("base", priority=100)
    await index_template.save()
Create an IndexTemplate and save it into elasticsearch.
examples/dsl/async/parent_child.py