code: def save_json(
      obj, file: str, indent: int = 4, sort_keys: bool = True
  ) -> None:
      with open(file, "w") as f:
          json.dump(obj, f, sort_keys=sort_keys, indent=indent)
  
file_path: PaddleSeg/contrib/MedicalSeg/nnunet/utils/postprocessing.py
imports: import os
  import shutil
  import json
  import numpy
  import SimpleITK
  from multiprocessing.pool import Pool
  from scipy.ndimage import label
  from copy import deepcopy
  from .evaluator import aggregate_scores
label_desc: Use image node_id 6 for calling a global function with example usage: save_json(obj, file, indent, sort_keys) without return types