code: def test_resolve_custom_file_filter():
      sagemaker_session = Mock()
      sagemaker_session.sagemaker_config = load_sagemaker_config(
          additional_config_paths=[
              os.path.join(DATA_DIR, "remote_function")
          ]
      )
      workdir_config = resolve_custom_file_filter_from_config_file(
          None, sagemaker_session=sagemaker_session
      )
      assert ["data", "test"] == workdir_config.ignore_name_patterns
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/remote_function/test_custom_file_filter.py
imports: from __future__ import absolute_import
  import os
  import pathlib
  import pytest
  from mock import Mock, patch
  from sagemaker.utils import _tmpdir
  from sagemaker.remote_function.custom_file_filter import CustomFileFilter, resolve_custom_file_filter_from_config_file, copy_workdir
  from sagemaker.config import load_sagemaker_config
  from tests.unit import DATA_DIR
label_desc: Use image node_id 2 for calling a global function with example usage: test_resolve_custom_file_filter() without return types