def _download_onprem_granules(
        self,
        urls: List[str],
        directory: Path,
        *,
        pqdm_kwargs: Optional[Mapping[str, Any]] = None,
    ) -> List[Any]:
        """Downloads a list of URLS into the data directory.

        Parameters:
            urls: list of granule URLs from an on-prem collection
            directory: local directory to store the downloaded files
            pqdm_kwargs: Additional keyword arguments to pass to pqdm, a parallel processing library.
                See pqdm documentation for available options. Default is to use immediate exception behavior
                and the number of jobs specified by the `threads` parameter.

        Returns:
            A list of local filepaths to which the files were downloaded.
        """
        if urls is None:
            raise ValueError("The granules didn't provide a valid GET DATA link")
        if self.auth is None:
            raise ValueError(
                "We need to be logged into NASA EDL in order to download data granules"
            )
        directory.mkdir(parents=True, exist_ok=True)

        arguments = [(url, directory) for url in urls]

        pqdm_kwargs = {
            "exception_behaviour": "immediate",
            "disable": True,
            **(pqdm_kwargs or {}),
            # We don't want a user to be able to override the following kwargs,
            # which is why they appear *after* spreading pqdm_kwargs above.
            "argument_type": "args",
        }

        return pqdm(arguments, self._download_file, **pqdm_kwargs)
Downloads a list of URLS into the data directory.

        Parameters:
            urls: list of granule URLs from an on-prem collection
            directory: local directory to store the downloaded files
            pqdm_kwargs: Additional keyword arguments to pass to pqdm, a parallel processing library.
                See pqdm documentation for available options. Default is to use immediate exception behavior
                and the number of jobs specified by the `threads` parameter.

        Returns:
            A list of local filepaths to which the files were downloaded.
        
earthaccess/store.py