def _is_gs_offloader(proc):
  """Return whether proc is a gs_offloader process."""
  cmdline = proc.cmdline()
  return (len(cmdline) >= 2
          and cmdline[0].endswith('python')
          and cmdline[1].endswith('gs_offloader.py'))