code: def test_config_factory_when_default_s3_config_file_is_not_found(
      s3_resource_mock,
  ):
      config_file_bucket = "config-file-bucket"
      config_file_s3_prefix = "config/config.yaml"
      # Return empty list during list operation
      s3_resource_mock.Bucket(name=config_file_bucket).objects.filter(
          Prefix=config_file_s3_prefix
      ).all.return_value = []
      config_file_s3_uri = "s3://{}/{}".format(
          config_file_bucket, config_file_s3_prefix
      )
      with pytest.raises(ValueError):
          load_sagemaker_config(
              additional_config_paths=[config_file_s3_uri],
              s3_resource=s3_resource_mock,
              repeat_log=True,
          )
  
imports: from __future__ import absolute_import
  import os
  import pytest
  import yaml
  import logging
  from mock import Mock, MagicMock, patch, call
  from sagemaker.config.config import load_local_mode_config, load_sagemaker_config, logger, non_repeating_log_factory, _DEFAULT_ADMIN_CONFIG_FILE_PATH, _DEFAULT_USER_CONFIG_FILE_PATH, _DEFAULT_LOCAL_MODE_CONFIG_FILE_PATH
  from jsonschema import exceptions
  from yaml.constructor import ConstructorError
label_desc: Use image node_id 15 for calling a global function with example usage: test_config_factory_when_default_s3_config_file_is_not_found(s3_resource_mock) without return types