def ReadManyFromPath ( filepath ) : with io . open ( filepath , mode = "r" , encoding = "utf-8" ) as filedesc : return ReadManyFromFile ( filedesc )
how to read in a yml file python
Reads a Python object stored in a specified YAML file .
def ReadManyFromPath(filepath):
  """Reads a Python object stored in a specified YAML file.

  Args:
    filepath: A filepath to the YAML file.

  Returns:
    A Python data structure corresponding to the YAML in the given file.
  """
  with io.open(filepath, mode="r", encoding="utf-8") as filedesc:
    return ReadManyFromFile(filedesc)