class_docstr: Buffer to store the data from the games played by the MCTS agent.
docstr: Copy save_dir content in path and save game_data
  in json format
docstr_tok: ["Copy","save_dir","content","in","path","and","save","game_data","in","json","format"]
code: def save_game_data(self, path: str):
      """Copy save_dir content in path and save game_data
      in json format
      """
      shutil.copytree(self.temp_dir, path, dirs_exist_ok=True)
      with open(os.path.join(path, "game_data.json"), "w") as f:
          json.dump(self.game_data, f)
  
imports: import json
  import os
  import shutil
  import tempfile
  from pathlib import Path
  from typing import List, Tuple
  import numpy
  import torch
  from torch.utils.data import Dataset
  from open_alpha_tensor.core.data.generation import generate_synthetic_data
  from open_alpha_tensor.core.data.utils import get_scalars, map_triplet_to_action
label_desc: Use image node_id 6 for calling the GameDataBuffer obj's underlying member method code with example usage: obj.save_game_data(path) without return types