parameters: (self, col, row, image)
docstring: Add an image to this 2D array.
  
      Args:
          col: x [0..ncols)
          row: y [0..nrows)
          image: the 256x256 tile image to add.
docstring_summary: Add an image to this 2D array.
docstring_tokens: Add an image to this 2D array .
function: def AddImage(self, col, row, image):
      """Add an image to this 2D array.
  
      Args:
          col: x [0..ncols)
          row: y [0..nrows)
          image: the 256x256 tile image to add.
      """
      if not isinstance(image, Image.Image):
        logger.error("Image parameter is not of type Image.Image")
      if not (0 <= col and col < self.ncols):
        logger.error("Column %d out of bounds: 0 - %d", col, self.ncols)
        utils.Assert(False)
      if not (0 <= row and row < self.nrows):
        logger.error("Row %d out of bounds: 0 - %d", row, self.nrows)
        utils.Assert(False)
  
      self.images[row][col] = image
function_tokens: def AddImage ( self , col , row , image ) : if not isinstance ( image , Image . Image ) : logger . error ( "Image parameter is not of type Image.Image" ) if not ( 0 <= col and col < self . ncols ) : logger . error ( "Column %d out of bounds: 0 - %d" , col , self . ncols ) utils . Assert ( False ) if not ( 0 <= row and row < self . nrows ) : logger . error ( "Row %d out of bounds: 0 - %d" , row , self . nrows ) utils . Assert ( False ) self . images [ row ] [ col ] = image