class_docstr: Connect4 Game class implementing the alpha-zero-general Game interface.
  
  Use 1 for player1 and -1 for player2.
docstr: Input:
      board: current board
      player: current player (1 or -1)
  
  Returns:
      canonicalBoard: returns canonical form of board. The canonical form
                      should be independent of player. For e.g. in chess,
                      the canonical form can be chosen to be from the pov
                      of white. When the player is white, we can return
                      board as is. When the player is black, we can invert
                      the colors and return the board.
docstr_tok: ["Input",":","board",":","current","board","player",":","current","player","(","1","or","-1",")","Returns",":","canonicalBoard",":","returns","canonical","form","of","board",".","The","canonical","form","should","be","independent","of","player",".","For","e.g",".","in","chess",",","the","canonical","form","can","be","chosen","to","be","from","the","pov","of","white",".","When","the","player","is","white",",","we","can","return","board","as","is",".","When","the","player","is","black",",","we","can","invert","the","colors","and","return","the","board","."]
code: def getCanonicalForm(self, board, player):
      """
      Input:
          board: current board
          player: current player (1 or -1)
  
      Returns:
          canonicalBoard: returns canonical form of board. The canonical form
                          should be independent of player. For e.g. in chess,
                          the canonical form can be chosen to be from the pov
                          of white. When the player is white, we can return
                          board as is. When the player is black, we can invert
                          the colors and return the board.
      """
      return board * player
  
imports: import numpy
  from collections import namedtuple
label_desc: Use image node_id 8 for calling the Connect4Game obj's underlying member method code with example usage: obj.getCanonicalForm(board, player) and returns: unknown