class_docstr: The AppConfig holds configuration metadata for the application.
  
  Args:
      name: Optional name of the application. If not provided, auto-generates a new name.
class_docstr_tok: ["The","AppConfig","holds","configuration","metadata","for","the","application",".","Args",":","name",":","Optional","name","of","the","application",".","If","not","provided",",","auto-generates","a","new","name","."]
docstr: Load the configuration from the given file.
docstr_tok: ["Load","the","configuration","from","the","given","file","."]
code: def load_from_file(
      cls, path: Union[str, pathlib.Path]
  ) -> "AppConfig":
      """Load the configuration from the given file."""
      with open(path) as file:
          config = yaml.safe_load(file)
      return cls(**config)
  
file_path: pytorch-lightning/src/lightning/app/utilities/packaging/app_config.py
imports: import pathlib
  from dataclasses import asdict, dataclass, field
  from typing import Union
  import yaml
  from lightning.app.utilities.name_generator import get_unique_name
label_desc: Use image node_id 3 for calling the AppConfig obj's underlying member method code with example usage: obj.load_from_file(cls, path) and returns: cls