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/tools/preprocess_utils/file_and_folder_operations.py
imports: import os
  import pickle
  import json
  from typing import List
  from .path_utils import join_paths
label_desc: Use image node_id 8 for calling a global function with example usage: save_json(obj, file, indent, sort_keys) without return types