code: def get_s3_to_local_tuple_list_from_s3_folder(
      *, s3_bucket: str, s3_prefix: str, local_path: str, **kwargs
  ) -> List[Tuple[str, str]]:
      """
      Given a s3 bucket and prefix, as well as a target local prefix, return a list of tuples of (s3_path, local_path)
      indicating the origin to target file path when downloading from S3 for each file.
  
      This output can be passed directly into `download_s3_files(s3_to_local_tuple_list=s3_to_local_tuple_list)` to download the s3 files.
  
      Parameters
      ----------
      s3_bucket: str
          The name of the bucket
      s3_prefix: str
          The prefix of the folder whose contents will be listed
          To list all files in the bucket, specify `prefix=''` (empty string)
      local_path: str
          The local path to map the s3 objects into
      **kwargs
          Optional arguments to `list_bucket_prefix_suffix_contains_s3` that allow
          more control of which objects are considered.
  
      Returns
      --------
      List[Tuple[str, str]],
          A list of (s3_path, local_path) tuples indicating the origin to target file path when downloading from s3.
      """
      if len(s3_prefix) > 0:
          assert s3_prefix.endswith(
              "/"
          ), "Please provide a prefix to a folder and end it with '/'"
      objs = list_bucket_prefix_suffix_contains_s3(
          bucket=s3_bucket, prefix=s3_prefix, **kwargs
      )
      s3_to_local_tuple_list = get_s3_to_local_tuple_list(
          s3_bucket=s3_bucket,
          s3_prefix=s3_prefix,
          local_path=local_path,
          s3_prefixes=objs,
      )
      return s3_to_local_tuple_list
  
file_path: autogluon/common/src/autogluon/common/utils/s3_utils.py
imports: import logging
  import os
  import pathlib
  import shutil
  from typing import Dict, List, Optional, Tuple, Union
  from tqdm import tqdm
  from ..loaders.load_s3 import list_bucket_prefix_suffix_contains_s3
label_desc: Use image node_id 8 for calling a global function with example usage: get_s3_to_local_tuple_list_from_s3_folder() and returns: s3_to_local_tuple_list