code: def test_get_data_source_instance_with_file(
      LocalFileDataSource, sagemaker_local_session
  ):
      # file
      data_source = sagemaker.local.data.get_data_source_instance(
          "file:///my/file", sagemaker_local_session
      )
      LocalFileDataSource.assert_called_with("/my/file")
      assert data_source is not None
  
      data_source = sagemaker.local.data.get_data_source_instance(
          "file://relative/path", sagemaker_local_session
      )
      LocalFileDataSource.assert_called_with("relative/path")
      assert data_source is not None
  
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 1 for calling a global function with example usage: test_get_data_source_instance_with_file(LocalFileDataSource, sagemaker_local_session) without return types