code: def test_file_data_source_get_root():
      data_source = sagemaker.local.data.LocalFileDataSource(
          "/some/path/"
      )
      assert data_source.get_root_dir() == "/some/path/"
  
      data_source = sagemaker.local.data.LocalFileDataSource(
          "/some/path/my_file.csv"
      )
      assert data_source.get_root_dir() == "/some/path"
  
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 5 for calling a global function with example usage: test_file_data_source_get_root() without return types