code: def WriteManyToPath(objs, filepath):
    
    with io.open(filepath, mode="w", encoding="utf-8") as filedesc:
      WriteManyToFile(objs, filedesc)
docs: Serializes and writes given Python objects to a multi-document YAML file.
  
    Args:
      objs: An iterable of Python objects to serialize.
      filepath: A path to the file into which the object is to be written.