code: def test_sourcedir_naming(
      sagemaker_session,
      xgboost_latest_version,
      xgboost_latest_py_version,
      cpu_instance_type,
  ):
      with pytest.raises(RuntimeError):
          processor = XGBoostProcessor(
              framework_version=xgboost_latest_version,
              role=ROLE,
              instance_count=1,
              instance_type=cpu_instance_type,
              sagemaker_session=sagemaker_session,
          )
          processor.run(
              source_dir="s3://bucket/deps.tar.gz",
              code="main_script.py",
          )
  
file_path: sagemaker-python-sdk/tests/integ/test_xgboost.py
imports: from __future__ import absolute_import
  import os
  import pytest
  from sagemaker.serverless import ServerlessInferenceConfig
  from sagemaker.utils import unique_name_from_base
  from sagemaker.xgboost import XGBoost, XGBoostModel
  from sagemaker.xgboost.processing import XGBoostProcessor
  from tests.integ import DATA_DIR, TRAINING_DEFAULT_TIMEOUT_MINUTES
  from tests.integ.timeout import timeout, timeout_and_delete_endpoint_by_name
label_desc: Use image node_id 2 for calling a global function with example usage: test_sourcedir_naming(sagemaker_session, xgboost_latest_version, xgboost_latest_py_version, cpu_instance_type) without return types