def WriteToPath ( obj , filepath ) : with io . open ( filepath , mode = "w" , encoding = "utf-8" ) as filedesc : WriteToFile ( obj , filedesc )
write python object to yaml file
Serializes and writes given Python object to the specified YAML file .
def WriteToPath(obj, filepath):
  """Serializes and writes given Python object to the specified YAML file.

  Args:
    obj: A Python object to serialize.
    filepath: A path to the file into which the object is to be written.
  """
  with io.open(filepath, mode="w", encoding="utf-8") as filedesc:
    WriteToFile(obj, filedesc)