Adding write sample for the YAML provider