code: def test_upload_data_aes_encrypted_absolute_dir(sagemaker_session):
      result_s3_uri = sagemaker_session.upload_data(
          UPLOAD_DATA_TESTS_FILES_DIR, extra_args=AES_ENCRYPTION_ENABLED
      )
  
      uploaded_files_with_args = [
          (args[0], kwargs)
          for name, args, kwargs in sagemaker_session.boto_session.mock_calls
          if name == "resource().Object().upload_file"
      ]
      assert result_s3_uri == "s3://{}/data".format(BUCKET_NAME)
      assert len(uploaded_files_with_args) == 4
      for file, kwargs in uploaded_files_with_args:
          assert os.path.exists(file)
          assert kwargs["ExtraArgs"] == AES_ENCRYPTION_ENABLED
  
file_path: sagemaker-python-sdk/tests/unit/test_upload_data.py
imports: from __future__ import absolute_import
  import os
  from mock import MagicMock, Mock
  import pytest
  import sagemaker
  from tests.unit import DATA_DIR
label_desc: Use image node_id 6 for calling a global function with example usage: test_upload_data_aes_encrypted_absolute_dir(sagemaker_session) without return types