  from selfdrive.loggerd.config import ROOT
  from selfdrive.loggerd.xattr_cache import getxattr, setxattr
  from selfdrive.swaglog import cloudlog, SWAGLOG_DIR
  import selfdrive.crash as crash
  from selfdrive.version import dirty, origin, branch, commit
  
  ATHENA_HOST = os.getenv('ATHENA_HOST', 'wss://athena.comma.ai')
  HANDLER_THREADS = int(os.getenv('HANDLER_THREADS', "4"))
  LOCAL_PORT_WHITELIST = set([8022])
  
 
</s> remove with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), "common", "version.h")) as _versionf:
  version = _versionf.read().split('"')[1]
 </s> add def get_version():
  with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), "common", "version.h")) as _versionf:
    version = _versionf.read().split('"')[1]
  return version
from selfdrive.version import dirty, origin, branch, commit, get_version, get_git_remote, get_git_branch, get_git_commit
  from selfdrive.loggerd.config import ROOT
  from selfdrive.loggerd.xattr_cache import getxattr, setxattr
  from selfdrive.swaglog import cloudlog, SWAGLOG_DIR
  import selfdrive.crash as crash
from selfdrive.version import dirty, origin, branch, commit, get_version, get_git_remote, get_git_branch, get_git_commit
  
  ATHENA_HOST = os.getenv('ATHENA_HOST', 'wss://athena.comma.ai')
  HANDLER_THREADS = int(os.getenv('HANDLER_THREADS', "4"))
  LOCAL_PORT_WHITELIST = set([8022])
  
keep keep keep keep replace keep keep keep keep keep
 athena: version endpoint (#21045)

* athena: version endpoint

* get_version function

* more explicit version validation 
selfdrive/athena/athenad.py