feat: add write_yaml_metadata_block()
#16
+27
−2
write_yaml_metadata_block()
#16