def _FindBatteryInfo(self):
    """Find battery info."""
    for item in self._GetDataTypeItems('power'):
      if 'sppower_battery_model_info' in item:
        self._profile['battery_serial_number'] = (
            item['sppower_battery_model_info'].get(
                'sppower_battery_serial_number', 'unknown'))
dataset/ETHPy150Open google/simian/src/simian/mac/common/hw.py/SystemProfile._FindBatteryInfo/original