code: def _solve(n, queens_x, queens_y):
      "Solve the queens puzzle"
      if n == 0:
          return True
  
      for x in range(1, 9):
          for y in range(1, 9):
              if not hitsany(x, y, queens_x, queens_y):
                  queens_x.append(x)
                  queens_y.append(y)
  
                  if _solve(n - 1, queens_x, queens_y):
                      return True
  
                  queens_x.pop()
                  queens_y.pop()
  
      return False
  
label_desc: Use image node_id 3 for calling a global function with example usage: _solve(n, queens_x, queens_y) and returns: False, True, True