  import sys
  
  import cereal.messaging as messaging
  from common.params import Params
  import selfdrive.manager as manager
  from selfdrive.test.helpers import set_params_enabled
  
  def cputime_total(ct):
    return ct.cpuUser + ct.cpuSystem + ct.cpuChildrenUser + ct.cpuChildrenSystem
  
 
</s> remove import threading
import _thread
import signal
 </s> add  </s> remove from selfdrive.version import training_version
 </s> add from selfdrive.version import training_version, terms_version
  import sys
  
  import cereal.messaging as messaging
  from common.params import Params

  from selfdrive.test.helpers import set_params_enabled
  
  def cputime_total(ct):
    return ct.cpuUser + ct.cpuSystem + ct.cpuChildrenUser + ct.cpuChildrenSystem
  
keep keep keep keep replace keep keep keep keep keep
 Improve CPU usage test reliability (#2002)

* run phone tests in parallel

* better cpu test

* re-enable test

* no root

* terms version

* not one

* yes

* debug

* that's coverd by min cpu percent 
selfdrive/test/test_cpu_usage.py