pymel.core.system.getReferences

getReferences(parentReference=None, recursive=False)