  import itertools
  import math
  import time
  from typing import NoReturn
  from struct import unpack_from, calcsize, pack
  
  from cereal import log
 
</s> remove import cereal.messaging as messaging
 </s> add  </s> remove from system.swaglog import cloudlog
 </s> add import cereal.messaging as messaging </s> remove 
 </s> add from system.swaglog import cloudlog </s> remove from selfdrive.sensord.rawgps.structs import dict_unpacker
from selfdrive.sensord.rawgps.structs import gps_measurement_report, gps_measurement_report_sv
from selfdrive.sensord.rawgps.structs import glonass_measurement_report, glonass_measurement_report_sv
from selfdrive.sensord.rawgps.structs import oemdre_measurement_report, oemdre_measurement_report_sv
from selfdrive.sensord.rawgps.structs import LOG_GNSS_GPS_MEASUREMENT_REPORT, LOG_GNSS_GLONASS_MEASUREMENT_REPORT
from selfdrive.sensord.rawgps.structs import position_report, LOG_GNSS_POSITION_REPORT, LOG_GNSS_OEMDRE_MEASUREMENT_REPORT
 </s> add from selfdrive.sensord.rawgps.structs import (dict_unpacker, position_report,
                                              gps_measurement_report, gps_measurement_report_sv,
                                              glonass_measurement_report, glonass_measurement_report_sv,
                                              oemdre_measurement_report, oemdre_measurement_report_sv,
                                              LOG_GNSS_GPS_MEASUREMENT_REPORT, LOG_GNSS_GLONASS_MEASUREMENT_REPORT,
                                              LOG_GNSS_POSITION_REPORT, LOG_GNSS_OEMDRE_MEASUREMENT_REPORT) </s> remove   os.system("mmcli -m 0 --command='AT+QGPSCFG=\"dpoenable\",0'")
  os.system("mmcli -m 0 --location-enable-gps-raw --location-enable-gps-nmea")
 </s> add   mmcli("--command='AT+QGPSCFG=\"dpoenable\",0'")
  # don't automatically turn on GNSS on powerup
  mmcli("--command='AT+QGPSCFG=\"autogps\",0'")
  mmcli("--location-enable-gps-raw --location-enable-gps-nmea")
import subprocess
  import itertools
  import math
  import time
import subprocess
  from typing import NoReturn
  from struct import unpack_from, calcsize, pack
  
  from cereal import log
keep keep add keep keep keep keep
 rawgpsd: more robust + simple test (#25977)

* rawgps cleanup

* wait for modem manager

* cleanup

Co-authored-by: Comma Device <device@comma.ai> 
selfdrive/sensord/rawgps/rawgpsd.py