from typing import Dict
from typing import Any
import yaml


def as_yaml(config: Dict[str, Any], **yaml_args: Any) -> str:
    """Use PyYAML library to write YAML file"""
    return yaml.dump(config, **yaml_args)