old_contents: import os
  
  if 'guppy' in os.uname()[1] or 'node' in os.uname()[1]:
      from util.gpu import get_board
      board = get_board()
      print "using board: {:d}".format(board)
  
      os.environ['TENSORFLOW_DEVICE'] = "/gpu:{:d}".format(board)
  
new_contents: import os
  import gpu_lock2 as gg
  
  if len(gg.board_ids()) > 0:
      from util.gpu import get_board
      board = get_board()
      print "using board: {:d}".format(board)
  
      os.environ['TENSORFLOW_DEVICE'] = "/gpu:{:d}".format(board)
  
subject: update to test for board ids