def get_providing_power_source_type(self):
        blob = IOPSCopyPowerSourcesInfo()
        type = IOPSGetProvidingPowerSourceType(blob)
        return POWER_TYPE_MAP[type]
Uses IOPSCopyPowerSourcesInfo and IOPSGetProvidingPowerSourceType to get providing power source type.
dataset/ETHPy150Open Kentzo/Power/power/darwin.py/PowerManagement.get_providing_power_source_type