def _download_files(self, box_files: List[File], temp_dir: str) -> List[File]:
        """
        Downloads Box files and updates the corresponding payloads with local paths.

        This internal helper function iterates through the provided payloads,
        downloads each file referenced by the payload's resource_info attribute
        to the specified temporary directory, and updates the downloaded_file_path
        attribute of the payload with the local file path.

        Args:
            self (BoxReader): An instance of the BoxReader class.
            payloads (List[_BoxResourcePayload]): A list of _BoxResourcePayload objects
                containing information about Box files.
            temp_dir (str): The path to the temporary directory where the files will
                be downloaded.

        Returns:
            List[_BoxResourcePayload]: The updated list of _BoxResourcePayload objects
                with the downloaded_file_path attribute set for each payload.

        """
        box_files_with_path: List[File] = []

        for file in box_files:
            local_path = download_file_by_id(
                box_client=self._box_client, box_file=file, temp_dir=temp_dir
            )
            file.downloaded_file_path = local_path
            box_files_with_path.append(file)
        return box_files_with_path

        Downloads Box files and updates the corresponding payloads with local paths.

        This internal helper function iterates through the provided payloads,
        downloads each file referenced by the payload's resource_info attribute
        to the specified temporary directory, and updates the downloaded_file_path
        attribute of the payload with the local file path.

        Args:
            self (BoxReader): An instance of the BoxReader class.
            payloads (List[_BoxResourcePayload]): A list of _BoxResourcePayload objects
                containing information about Box files.
            temp_dir (str): The path to the temporary directory where the files will
                be downloaded.

        Returns:
            List[_BoxResourcePayload]: The updated list of _BoxResourcePayload objects
                with the downloaded_file_path attribute set for each payload.

        
llama-index-integrations/readers/llama-index-readers-box/llama_index/readers/box/BoxReader/base.py