code: def test_with_custom_file_filter(
      sagemaker_session,
      dummy_container_without_error,
      cpu_instance_type,
      monkeypatch,
  ):
      source_dir_path = os.path.join(os.path.dirname(__file__))
      with monkeypatch.context() as m:
          m.chdir(source_dir_path)
          dependencies_path = os.path.join(
              DATA_DIR, "remote_function", "requirements.txt"
          )
  
          @remote(
              role=ROLE,
              image_uri=dummy_container_without_error,
              dependencies=dependencies_path,
              instance_type=cpu_instance_type,
              sagemaker_session=sagemaker_session,
              include_local_workdir=True,
              custom_file_filter=CustomFileFilter(),
              keep_alive_period_in_seconds=300,
          )
          def train(x):
              from helpers import local_module
              from helpers.nested_helper import local_module2
  
              return local_module.square(x) + local_module2.cube(x)
  
          assert train(2) == 12
  
imports: from __future__ import absolute_import
  import time
  from typing import Union
  import pytest
  import os
  import logging
  import random
  import string
  import pandas
  import subprocess
  import shlex
  from sagemaker.experiments.run import Run, load_run
  from sagemaker.remote_function import CheckpointLocation
  from tests.integ.sagemaker.experiments.helpers import cleanup_exp_resources
  from sagemaker.experiments.trial_component import _TrialComponent
  from sagemaker.experiments._api_types import _TrialComponentStatusType
  from sagemaker.remote_function import remote
  from sagemaker.remote_function.spark_config import SparkConfig
  from sagemaker.remote_function.custom_file_filter import CustomFileFilter
  from sagemaker.remote_function.runtime_environment.runtime_environment_manager import RuntimeEnvironmentError
  from sagemaker.remote_function.errors import DeserializationError, SerializationError
  from sagemaker.utils import unique_name_from_base
  from tests.integ.kms_utils import get_or_create_kms_key
  from tests.integ import DATA_DIR
  from tests.integ.s3_utils import assert_s3_files_exist
label_desc: Use image node_id 7 for calling a global function with example usage: test_with_custom_file_filter(sagemaker_session, dummy_container_without_error, cpu_instance_type, monkeypatch) and returns: unknown