in awswrangler/s3/_read.py [0:0]
def _check_version_id(paths: list[str], version_id: str | dict[str, str] | None = None) -> dict[str, str] | None:
if len(paths) > 1 and version_id is not None and not isinstance(version_id, dict):
raise exceptions.InvalidArgumentCombination(
"If multiple paths are provided along with a file version ID, the version ID parameter must be a dict."
)
if isinstance(version_id, dict) and not all(version_id.values()):
raise exceptions.InvalidArgumentValue("Values in version ID dict cannot be None.")
return (
version_id if isinstance(version_id, dict) else {paths[0]: version_id} if isinstance(version_id, str) else None
)