code: def upload_file(self, key, local_path):
      if not os.path.exists(local_path):
          self.logger.debug(
              "Local path {0} does not exist. SKIPPING upload to {1}/{2}".format(
                  local_path, self.bucket, key
              )
          )
          return False
      try:
          config = TransferConfig(
              multipart_threshold=2 * 1024 * 1024 * 1024
          )
          with open(local_path, "rb") as data:
              self.client.upload_fileobj(
                  data, self.bucket, key, Config=config
              )
          return True
      except Exception as exc:
          self._report_fatal(
              "FAILED to upload file {0} to {1}/{2}: {3}".format(
                  local_path, self.bucket, key, exc
              )
          )
          return False
  
imports: import calendar
  import os
  from urllib.parse import urlparse
  from boto3.s3.transfer import TransferConfig
  from boto3.session import Session
  import botocore
  from botocore.client import Config
  from botocore.handlers import set_list_objects_encoding_type_url
  from typing import Dict
  import re
  from studio.util import logs
  from studio.util import util
  from studio.credentials.credentials import Credentials, AWS_TYPE
  from studio.storage.storage_handler import StorageHandler
  from studio.storage.storage_type import StorageType
  from studio.storage.storage_setup import get_storage_verbose_level
label_desc: Use image node_id 5 for calling the S3StorageHandler obj's underlying member method code with example usage: obj.upload_file(key, local_path) and returns: False, True, False