def load_source()

in dagify/converter/utils.py [0:0]


def load_source(source_path, tool):
    """ Read the Source File
        Parse into dagify Universial Format
        Output the dagify Universial Format Back to the Class"""
    if source_path is None:
        raise ValueError("dagify: source file cannot be None or Empty")
    if file_exists(source_path) is False:
        raise FileNotFoundError(
            "dagify: source file not found at {}".format(
                source_path))

    root = ET.parse(source_path).getroot()
    uf = parse_universal_format(root, tool)
    return uf