docstr: Downloads filenames and read urls from the datasource.
  
  Only samples with timestamp between `from_` (inclusive) and `to` (inclusive)
  will be downloaded.
  
  Args:
      from_:
          Unix timestamp from which on samples are downloaded. Defaults to the
          very beginning (timestamp 0).
      to:
          Unix timestamp up to and including which samples are downloaded.
          Defaults to the current timestamp.
      relevant_filenames_file_name:
          Path to the relevant filenames text file in the cloud bucket.
          The path is relative to the datasource root. Optional.
      use_redirected_read_url:
          Flag for redirected read urls. When this flag is true,
          RedirectedReadUrls are returned instead of ReadUrls, meaning that the
          returned URLs have unlimited access to the file.
          Defaults to False. When S3DelegatedAccess is configured, this flag has
          no effect because RedirectedReadUrls are always returned.
      progress_bar:
          Tqdm progress bar to show how many samples have already been
          retrieved.
  
  Returns:
      A list of (filename, url) tuples where each tuple represents a sample.
  
  Examples:
      >>> client = ApiWorkflowClient(token="MY_AWESOME_TOKEN")
      >>>
      >>> # Already created some Lightly Worker runs with this dataset
      >>> client.set_dataset_id_by_name("my-dataset")
      >>> client.download_raw_samples()
      [('image-1.png', 'https://......'), ('image-2.png', 'https://......')]
  
  :meta private:  # Skip docstring generation
docstr_tok: ["Downloads","filenames","and","read","urls","from","the","datasource",".","Only","samples","with","timestamp","between","`","from_","`","(","inclusive",")","and","`","to","`","(","inclusive",")","will","be","downloaded",".","Args",":","from_",":","Unix","timestamp","from","which","on","samples","are","downloaded",".","Defaults","to","the","very","beginning","(","timestamp","0",")",".","to",":","Unix","timestamp","up","to","and","including","which","samples","are","downloaded",".","Defaults","to","the","current","timestamp",".","relevant_filenames_file_name",":","Path","to","the","relevant","filenames","text","file","in","the","cloud","bucket",".","The","path","is","relative","to","the","datasource","root",".","Optional",".","use_redirected_read_url",":","Flag","for","redirected","read","urls",".","When","this","flag","is","true",",","RedirectedReadUrls","are","returned","instead","of","ReadUrls",",","meaning","that","the","returned","URLs","have","unlimited","access","to","the","file",".","Defaults","to","False",".","When","S3DelegatedAccess","is","configured",",","this","flag","has","no","effect","because","RedirectedReadUrls","are","always","returned",".","progress_bar",":","Tqdm","progress","bar","to","show","how","many","samples","have","already","been","retrieved",".","Returns",":","A","list","of","(","filename",",","url",")","tuples","where","each","tuple","represents","a","sample",".","Examples",":",">",">",">","client","=","ApiWorkflowClient","(","token=","''","MY_AWESOME_TOKEN","''",")",">",">",">",">",">",">","#","Already","created","some","Lightly","Worker","runs","with","this","dataset",">",">",">","client.set_dataset_id_by_name","(","``","my-dataset","''",")",">",">",">","client.download_raw_samples","(",")","[","(","'image-1.png","'",",","'https",":","\/\/","......","'",")",",","(","'image-2.png","'",",","'https",":","\/\/","......","'",")","]",":","meta","private",":","#","Skip","docstring","generation"]
code: def download_raw_samples(
      self,
      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,
  ) -> List[Tuple[str, str]]:
      """Downloads filenames and read urls from the datasource.
  
      Only samples with timestamp between `from_` (inclusive) and `to` (inclusive)
      will be downloaded.
  
      Args:
          from_:
              Unix timestamp from which on samples are downloaded. Defaults to the
              very beginning (timestamp 0).
          to:
              Unix timestamp up to and including which samples are downloaded.
              Defaults to the current timestamp.
          relevant_filenames_file_name:
              Path to the relevant filenames text file in the cloud bucket.
              The path is relative to the datasource root. Optional.
          use_redirected_read_url:
              Flag for redirected read urls. When this flag is true,
              RedirectedReadUrls are returned instead of ReadUrls, meaning that the
              returned URLs have unlimited access to the file.
              Defaults to False. When S3DelegatedAccess is configured, this flag has
              no effect because RedirectedReadUrls are always returned.
          progress_bar:
              Tqdm progress bar to show how many samples have already been
              retrieved.
  
      Returns:
          A list of (filename, url) tuples where each tuple represents a sample.
  
      Examples:
          >>> client = ApiWorkflowClient(token="MY_AWESOME_TOKEN")
          >>>
          >>> # Already created some Lightly Worker runs with this dataset
          >>> client.set_dataset_id_by_name("my-dataset")
          >>> client.download_raw_samples()
          [('image-1.png', 'https://......'), ('image-2.png', 'https://......')]
  
      :meta private:  # Skip docstring generation
      """
      return self._download_raw_files(
          download_function=self._datasources_api.get_list_of_raw_samples_from_datasource_by_dataset_id,
          from_=from_,
          to=to,
          relevant_filenames_file_name=relevant_filenames_file_name,
          use_redirected_read_url=use_redirected_read_url,
          progress_bar=progress_bar,
      )
  
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 1 for calling the _DatasourcesMixin obj's underlying member method code with example usage: obj.download_raw_samples(from_, to, relevant_filenames_file_name, use_redirected_read_url, progress_bar) and returns: self