def METHOD_NAME(ctx: Context):
    """Get the parsed u_packages.yml config"""
    # First check if user have specified a specific folder to put
    # the u_packages in
    if not "UBXLIB_PKG_DIR" in os.environ:
        if is_linux():
            pkg_dir = "${HOME}/.ubxlibpkg"
        else:
            pkg_dir = "${UserProfile}\\.ubxlibpkg"
        os.environ["UBXLIB_PKG_DIR"] = os.path.expandvars(pkg_dir)
        ctx.config.run.env["UBXLIB_PKG_DIR"] = os.environ["UBXLIB_PKG_DIR"]
    # Load u_packages.yml
    if not 'cfg_dir' in ctx.config:
        ctx.config['cfg_dir'] = os.getcwd()
    cfg_file = os.path.join(ctx.config['cfg_dir'], "u_packages.yml")
    pkg_cfg = u_config.load_config_yaml(cfg_file, is_linux(), is_arm())
    # For all packages that doesn't specify package_dir we add a default value
    for pkg_name in pkg_cfg:
        if not "package_dir" in pkg_cfg[pkg_name]:
            dir = os.path.join(os.path.expandvars("${UBXLIB_PKG_DIR}"), os.path.expandvars(f"{pkg_name}"))
            if "version" in pkg_cfg[pkg_name]:
                dir = dir + f"-{pkg_cfg[pkg_name]['version']}"
            pkg_cfg[pkg_name]["package_dir"] = dir
    return pkg_cfg