code: def test_xgboost_processor_with_required_parameters(
      exists_mock,
      isfile_mock,
      botocore_resolver,
      sagemaker_session,
      xgboost_framework_version,
  ):
      botocore_resolver.return_value.construct_endpoint.return_value = {
          "hostname": ECR_HOSTNAME
      }
  
      processor = XGBoostProcessor(
          role=ROLE,
          instance_type="ml.m4.xlarge",
          framework_version=xgboost_framework_version,
          instance_count=1,
          sagemaker_session=sagemaker_session,
      )
  
      processor.run(code="/local/path/to/processing_code.py")
  
      expected_args = _get_expected_args_modular_code(
          processor._current_job_name
      )
  
      if version.parse(xgboost_framework_version) < version.parse(
          "1.2-1"
      ):
          xgboost_image_uri = (
              "246618743249.dkr.ecr.us-west-2.amazonaws.com/sagemaker-xgboost:{}-cpu-py3"
          ).format(xgboost_framework_version)
      else:
          xgboost_image_uri = (
              "246618743249.dkr.ecr.us-west-2.amazonaws.com/sagemaker-xgboost:{}"
          ).format(xgboost_framework_version)
  
      expected_args["app_specification"]["ImageUri"] = xgboost_image_uri
  
      sagemaker_session.process.assert_called_with(**expected_args)
  
imports: from __future__ import absolute_import
  import copy
  import pytest
  from mock import Mock, patch, MagicMock
  from packaging import version
  from sagemaker import LocalSession
  from sagemaker.dataset_definition.inputs import S3Input, DatasetDefinition, AthenaDatasetDefinition, RedshiftDatasetDefinition
  from sagemaker.processing import ProcessingInput, ProcessingOutput, Processor, ScriptProcessor, ProcessingJob
  from sagemaker.session_settings import SessionSettings
  from sagemaker.spark.processing import PySparkProcessor
  from sagemaker.sklearn.processing import SKLearnProcessor
  from sagemaker.pytorch.processing import PyTorchProcessor
  from sagemaker.tensorflow.processing import TensorFlowProcessor
  from sagemaker.workflow.pipeline_definition_config import PipelineDefinitionConfig
  from sagemaker.xgboost.processing import XGBoostProcessor
  from sagemaker.mxnet.processing import MXNetProcessor
  from sagemaker.network import NetworkConfig
  from sagemaker.processing import FeatureStoreOutput
  from sagemaker.fw_utils import UploadedCode
  from sagemaker.workflow.pipeline_context import PipelineSession, _PipelineConfig
  from sagemaker.workflow.functions import Join
  from sagemaker.workflow.execution_variables import ExecutionVariables
  from tests.unit import SAGEMAKER_CONFIG_PROCESSING_JOB
label_desc: Use image node_id 11 for calling a global function with example usage: test_xgboost_processor_with_required_parameters(exists_mock, isfile_mock, botocore_resolver, sagemaker_session, xgboost_framework_version) without return types