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"]
docstr: Creates a :class:`~pythae.config.BaseConfig` instance from a JSON config file
  
  Args:
      json_path (str): The path to the json file containing all the parameters
  
  Returns:
      :class:`BaseConfig`: The created instance
docstr_tok: ["Creates","a",":","class",":","`","~pythae.config.BaseConfig","`","instance","from","a","JSON","config","file","Args",":","json_path","(","str",")",":","The","path","to","the","json","file","containing","all","the","parameters","Returns",":",":","class",":","`","BaseConfig","`",":","The","created","instance"]
code: def from_json_file(cls, json_path: str) -> "BaseConfig":
      """Creates a :class:`~pythae.config.BaseConfig` instance from a JSON config file
  
      Args:
          json_path (str): The path to the json file containing all the parameters
  
      Returns:
          :class:`BaseConfig`: The created instance
      """
      config_dict = cls._dict_from_json(json_path)
  
      config_name = config_dict.pop("name")
  
      if cls.__name__ != config_name:
          warnings.warn(
              f"You are trying to load a "
              f"`{ cls.__name__}` while a "
              f"`{config_name}` is given."
          )
  
      return cls.from_dict(config_dict)
  
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 4 for calling the BaseConfig obj's underlying member method code with example usage: obj.from_json_file(cls, json_path) and returns: cls