Source: https://www.esri.com/content/dam/esrisites/en-us/esri-press/pdfs/python-scripting-arcgis-pro-sample-chapter.pdf