code: def _download_from_s3(
      path,
      local_path,
      aws_access_key=None,
      aws_secret_key=None,
      **kwargs,
  ):
      client = boto3.client(
          "s3",
          aws_access_key_id=aws_access_key,
          aws_secret_access_key=aws_secret_key,
      )
  
      bucket = path.split("/")[2]
      file_to_download = path.replace("s3://{}/".format(bucket), "")
  
      try:
          LOGGER.info("Downloading {}".format(path))
          client.download_file(bucket, file_to_download, local_path)
  
          return local_path
  
      except ClientError as e:
          LOGGER.error(
              "An error occurred trying to download from AWS3."
              "The following error has been returned: {}".format(e)
          )
  
file_path: ATM/atm/data.py
imports: import glob
  import logging
  import os
  import shutil
  import boto3
  import pandas
  import requests
  from botocore import UNSIGNED
  from botocore.client import Config
  from botocore.exceptions import ClientError
label_desc: Use image node_id 4 for calling a global function with example usage: _download_from_s3(path, local_path, aws_access_key, aws_secret_key) and returns: local_path