code: def list_bucket_s3(bucket):
      import boto3
  
      logger.log(15, "Listing s3 bucket: " + str(bucket))
  
      s3bucket = boto3.resource("s3")
      my_bucket = s3bucket.Bucket(bucket)
      files = []
      for object in my_bucket.objects.all():
          files.append(object.key)
          logger.log(15, str(object.key))
      return files
  
imports: import logging
  import os
  import pathlib
  from typing import List, Optional, Union
label_desc: Use image node_id 1 for calling a global function with example usage: list_bucket_s3(bucket) and returns: files