class_docstr: Connect4 Game class implementing the alpha-zero-general Game interface.
  
  Use 1 for player1 and -1 for player2.
docstr: Any zero value in top row in a valid move.
  
  Input:
      board: current board
      player: current player
  
  Returns:
      validMoves: a binary vector of length self.getActionSize(), 1 for
                  moves that are valid from the current board and player,
                  0 for invalid moves
docstr_tok: ["Any","zero","value","in","top","row","in","a","valid","move",".","Input",":","board",":","current","board","player",":","current","player","Returns",":","validMoves",":","a","binary","vector","of","length","self.getActionSize","(",")",",","1","for","moves","that","are","valid","from","the","current","board","and","player",",","0","for","invalid","moves"]
code: def getValidMoves(self, board, player):
      """Any zero value in top row in a valid move.
  
      Input:
          board: current board
          player: current player
  
      Returns:
          validMoves: a binary vector of length self.getActionSize(), 1 for
                      moves that are valid from the current board and player,
                      0 for invalid moves
      """
      return self._base_board.with_np_pieces(
          np_pieces=board
      ).get_valid_moves()
  
imports: import numpy
  from collections import namedtuple
label_desc: Use image node_id 6 for calling the Connect4Game obj's underlying member method code with example usage: obj.getValidMoves(board, player) and returns: self