class_docstr: This is the BaseConfig class which defines all the useful loading and saving methods
  of the configs
class_docstr_tok: ["This","is","the","BaseConfig","class","which","defines","all","the","useful","loading","and","saving","methods","of","the","configs"]
code: def _dict_from_json(
      cls, json_path: Union[str, os.PathLike]
  ) -> Dict[str, Any]:
      try:
          with open(json_path) as f:
              try:
                  config_dict = json.load(f)
                  return config_dict
  
              except (TypeError, json.JSONDecodeError) as e:
                  raise TypeError(
                      f"File {json_path} not loadable. Maybe not json ? \n"
                      f"Catch Exception {type(e)} with message: "
                      + str(e)
                  ) from e
  
      except FileNotFoundError:
          raise FileNotFoundError(
              f"Config file not found. Please check path '{json_path}'"
          )
  
file_path: benchmark_VAE/src/pythae/config.py
imports: import json
  import os
  import warnings
  from dataclasses import asdict, field
  from typing import Any, Dict, Union
  from pydantic import ValidationError
  from pydantic.dataclasses import dataclass
label_desc: Use image node_id 3 for calling the BaseConfig obj's underlying member method code with example usage: obj._dict_from_json(cls, json_path) and returns: config_dict