code: def test_prepare_and_upload_workspace_with_filter(
      mock_job_upload,
      remote_decorator_config_with_filter,
      runtime_env_manager,
  ):
      config_uploader_with_filter = ConfigUploader(
          remote_decorator_config=remote_decorator_config_with_filter,
          runtime_env_manager=runtime_env_manager,
      )
      remote_decorator_config = (
          config_uploader_with_filter.remote_decorator_config
      )
      config_uploader_with_filter._prepare_and_upload_workspace(
          local_dependencies_path="some/path/to/dependency",
          include_local_workdir=True,
          pre_execution_commands=remote_decorator_config.pre_execution_commands,
          pre_execution_script_local_path=remote_decorator_config.pre_execution_script,
          s3_base_uri=remote_decorator_config.s3_root_uri,
          s3_kms_key=remote_decorator_config.s3_kms_key,
          sagemaker_session=sagemaker_session,
          custom_file_filter=remote_decorator_config_with_filter.custom_file_filter,
      )
  
      mock_job_upload.assert_called_once_with(
          local_dependencies_path="some/path/to/dependency",
          include_local_workdir=True,
          pre_execution_commands=remote_decorator_config.pre_execution_commands,
          pre_execution_script_local_path=remote_decorator_config.pre_execution_script,
          s3_base_uri=remote_decorator_config.s3_root_uri,
          s3_kms_key=remote_decorator_config.s3_kms_key,
          sagemaker_session=sagemaker_session,
          custom_file_filter=custom_file_filter,
      )
  
imports: from __future__ import absolute_import
  import pytest
  from mock import Mock, patch
  from sagemaker.feature_store.feature_processor._config_uploader import ConfigUploader
  from sagemaker.feature_store.feature_processor._constants import SPARK_JAR_FILES_PATH, SPARK_FILES_PATH, SPARK_PY_FILES_PATH, SAGEMAKER_WHL_FILE_S3_PATH
  from sagemaker.remote_function.job import _JobSettings, RUNTIME_SCRIPTS_CHANNEL_NAME, REMOTE_FUNCTION_WORKSPACE, SPARK_CONF_CHANNEL_NAME
  from sagemaker.remote_function.spark_config import SparkConfig
  from sagemaker.session import Session
label_desc: Use image node_id 10 for calling a global function with example usage: test_prepare_and_upload_workspace_with_filter(mock_job_upload, remote_decorator_config_with_filter, runtime_env_manager) without return types