code: def download(input_bucket, input_prefix, local_path):
      import boto3
  
      directory = os.path.dirname(local_path)
      pathlib.Path(directory).mkdir(parents=True, exist_ok=True)
  
      s3 = boto3.resource("s3")
      s3.Bucket(input_bucket).download_file(input_prefix, local_path)
  
imports: import logging
  import os
  import pathlib
  from typing import List, Optional, Union
label_desc: Use image node_id 2 for calling a global function with example usage: download(input_bucket, input_prefix, local_path) without return types