This command saves preference dependency nodes to “userPrefObjects.ma” in the user preference directory.
Derived from mel command maya.cmds.savePrefObjects
Example:
import pymel.core as pm
import maya.cmds as cmds
pm.savePrefObjects()
# Result: u'1' #