def METHOD_NAME(self, dest: Union[str, PathLike, IO[AnyStr]], **kwargs) -> None:
    """Dump the asset content into a file in YAML format.
    :param dest: The local path or file stream to write the YAML content to.
        If dest is a file path, a new file will be created.
        If dest is an open file, the file will be written to directly.
    :type dest: Union[PathLike, str, IO[AnyStr]]
    :keyword kwargs: Additional arguments to pass to the YAML serializer.
    :paramtype kwargs: dict
    :raises FileExistsError: Raised if dest is a file path and the file already exists.
    :raises IOError: Raised if dest is an open file and the file is not writable.
    """
    path = kwargs.pop("path", None)
    yaml_serialized = self._to_dict()
    dump_yaml_to_file(dest, yaml_serialized, default_flow_style=False, path=path, **kwargs)