code: def test_get_data_source_instance_with_s3(
      S3DataSource, sagemaker_local_session
  ):
      data_source = sagemaker.local.data.get_data_source_instance(
          "s3://bucket/path", sagemaker_local_session
      )
      S3DataSource.assert_called_with(
          "bucket", "/path", sagemaker_local_session
      )
      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 2 for calling a global function with example usage: test_get_data_source_instance_with_s3(S3DataSource, sagemaker_local_session) without return types