def is_llama_index_package(package_path: Path) -> bool:
    """Returns whether a folder contains a 'pyproject.toml' file."""
    pyproject = package_path / "pyproject.toml"
    return package_path.is_dir() and pyproject.exists() and pyproject.is_file()
Returns whether a folder contains a 'pyproject.toml' file.
llama-dev/llama_dev/utils.py