code: def test_s3_data_source(
      download_folder, LocalFileDataSource, sagemaker_local_session
  ):
      data_source = sagemaker.local.data.S3DataSource(
          "my_bucket", "/transform/data", sagemaker_local_session
      )
      download_folder.assert_called()
      data_source.get_file_list()
      LocalFileDataSource().get_file_list.assert_called()
      data_source.get_root_dir()
      LocalFileDataSource().get_root_dir.assert_called()
  
imports: from __future__ import absolute_import
  import sys
  import pytest
  from mock import patch, Mock
  import sagemaker.amazon
  import sagemaker.local.data
label_desc: Use image node_id 6 for calling a global function with example usage: test_s3_data_source(download_folder, LocalFileDataSource, sagemaker_local_session) without return types