If the version is 1.2.*, then `pyyaml` is not suitable, as it is [only for YAML 1.1](https://github.com/yaml/pyyaml/blob/main/setup.py#L10). For YAML 1.2 I can offer my lib: https://github.com/lava-sh/yaml-rs