code: def get_test_dataset():
      game = Connect4Game()
      test_dataset = []
      with open("refmoves1k_kaggle") as f:
          for line in f:
              data = json.loads(line)
  
              board = data["board"]
              board = np.reshape(board, game.getBoardSize()).astype(int)
              board[np.where(board == 2)] = -1
  
              # find out how many moves are played to set the correct mark.
              ply = len([x for x in data["board"] if x > 0])
              if ply & 1:
                  player = -1
              else:
                  player = 1
  
              test_dataset.append(
                  {
                      "board": board,
                      "player": player,
                      "move_score": data["move score"],
                  }
              )
      return test_dataset
  
file_path: PARL/examples/AlphaZero/utils.py
imports: import json
  import numpy
  from connect4_game import Connect4Game
label_desc: Use image node_id 2 for calling a global function with example usage: get_test_dataset() and returns: test_dataset