import arcpy
arcpy.CheckOutExtension("network")
new_network_location = r"C:\\GIS590\\RawData_Preprocessing_Dev\\Changed_Features.gdb\\Changed_Features_ND"
xml_template = r"C:\\GIS590\\RawData_Preprocessing_Dev\\Roads_Again_Dataset_Template.xml"
arcpy.na.CreateNetworkDatasetFromTemplate(xml_template,new_network_location)Above is the code i am using. This works in the ArcGIS environment but when I run this through Arcpy in VSCode. The ND is built but it doesn't populate the properties that are within the XML instead i get a properties section that looks like this.

Why does this occer?