def METHOD_NAME(packages_dir: Path = PACKAGES_DIR) -> List[Path]:
    """
    Walks through all API packages in the specified `packages_dir` path. 
    Args:
        packages_dir(pathlib.Path): Path to the directory which contains packages.
    Returns:
        List[pathlib.Path] where each entry corresponds to a package within the
            specified `packages_dir`, which has a corresponding .OwlBot.yaml file.
    """
    if not Path(packages_dir).exists():
        raise FileNotFoundError(f"Directory {packages_dir} not found")
    return [obj.parents[0].resolve() for obj in packages_dir.rglob("**/.OwlBot.yaml")]