def pom_pretty_print(f):
    return dom.parseString(f).toprettyxml(indent=' ' * 2, encoding='UTF-8')\
        .decode("utf-8").strip('\n')
dataset/ETHPy150Open databricks/spark-package-cmd-tool/python/spark_package/spark_package.py/pom_pretty_print/original