code: def _generate_processor(
      exp_name,
      sagemaker_session,
      execution_role,
      sagemaker_metrics_config,
      sagemaker_client_config,
  ):
      env = _update_env_with_client_config(
          env={
              "EXPERIMENT_NAME": exp_name,
              "RUN_NAME": _RUN_NAME_IN_SCRIPT,
          },
          sagemaker_metrics_config=sagemaker_metrics_config,
          sagemaker_client_config=sagemaker_client_config,
      )
      return FrameworkProcessor(
          estimator_cls=PyTorch,
          framework_version="1.10",
          py_version="py38",
          instance_count=1,
          instance_type="ml.m5.xlarge",
          role=execution_role,
          sagemaker_session=sagemaker_session,
          env=env,
      )
  
imports: from __future__ import absolute_import
  import datetime
  import json
  import os
  import time
  import pytest
  from tests.conftest import CUSTOM_S3_OBJECT_KEY_PREFIX
  from tests.integ.sagemaker.experiments.conftest import TAGS
  from sagemaker.experiments._api_types import _TrialComponentStatusType
  from sagemaker.experiments._utils import is_run_trial_component
  from sagemaker.processing import FrameworkProcessor
  from sagemaker.pytorch import PyTorch
  from sagemaker.s3 import S3Uploader
  from sagemaker.xgboost import XGBoostModel
  from tests.integ import DATA_DIR
  from sagemaker.experiments._metrics import BATCH_SIZE
  from sagemaker.experiments.trial_component import _TrialComponent
  from sagemaker.sklearn import SKLearn
  from sagemaker.utils import retry_with_backoff, unique_name_from_base
  from tests.integ.sagemaker.experiments.helpers import name, cleanup_exp_resources
  from sagemaker.experiments.run import RUN_NAME_BASE, DELIMITER
  from sagemaker.experiments import Run, load_run, list_runs
  from sagemaker.experiments._helper import _DEFAULT_ARTIFACT_PREFIX
label_desc: Use image node_id 14 for calling a global function with example usage: _generate_processor(exp_name, sagemaker_session, execution_role, sagemaker_metrics_config, sagemaker_client_config) and returns: FrameworkProcessor