def METHOD_NAME(path: str) -> Dict[str, Any]:
    try:
        with open(path, "r", encoding="utf-8") as f:
            if path.endswith(".json"):
                return json.load(f)
            if path.endswith(".yaml"):
                return yaml.full_load(f)  # type: ignore
            return {}
    except FileNotFoundError:
        return {}