code: def _download_raw_files(
      self,
      download_function: Union[
          "DatasourcesApi.get_list_of_raw_samples_from_datasource_by_dataset_id",
          "DatasourcesApi.get_list_of_raw_samples_predictions_from_datasource_by_dataset_id",
          "DatasourcesApi.get_list_of_raw_samples_metadata_from_datasource_by_dataset_id",
      ],
      from_: int = 0,
      to: Optional[int] = None,
      relevant_filenames_file_name: Optional[str] = None,
      use_redirected_read_url: bool = False,
      progress_bar: Optional[tqdm.tqdm] = None,
      **kwargs,
  ) -> List[Tuple[str, str]]:
      return list(
          self._download_raw_files_iter(
              download_function=download_function,
              from_=from_,
              to=to,
              relevant_filenames_file_name=relevant_filenames_file_name,
              use_redirected_read_url=use_redirected_read_url,
              progress_bar=progress_bar,
              **kwargs,
          )
      )
  
imports: import time
  import warnings
  from typing import Dict, Iterator, List, Optional, Set, Tuple, Union
  import tqdm
  from lightly.openapi_generated.swagger_client.models import DatasourceConfig, DatasourceProcessedUntilTimestampRequest, DatasourceProcessedUntilTimestampResponse, DatasourcePurpose, DatasourceRawSamplesData
  from lightly.openapi_generated.swagger_client.models.datasource_raw_samples_data_row import DatasourceRawSamplesDataRow
label_desc: Use image node_id 20 for calling the _DatasourcesMixin obj's underlying member method code with example usage: obj._download_raw_files(download_function, from_, to, relevant_filenames_file_name, use_redirected_read_url, progress_bar) and returns: list