code: def test_file_data_source_get_file_list_with_folder(listdir):
      data_source = sagemaker.local.data.LocalFileDataSource(
          "/some/path/"
      )
      listdir.return_value = [
          "/some/path/a",
          "/some/path/b",
          "/some/path/c/",
          "/some/path/c/a",
      ]
      expected = ["/some/path/a", "/some/path/b", "/some/path/c/a"]
      result = data_source.get_file_list()
      assert result == expected
  
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 3 for calling a global function with example usage: test_file_data_source_get_file_list_with_folder(listdir) without return types