def METHOD_NAME(derivation: Derivation) -> List[str]:
    """Return all the `tags` that are collected recursively."""
    tags: List[str] = []
    tags.extend(derivation.tags)
    if derivation.children is not None:
        for child in derivation.children:
            tags.extend(METHOD_NAME(child))
    return tags