code: def role_arn(sagemaker_session):
      iam_client = sagemaker_session.boto_session.client("iam")
      return iam_client.get_role(RoleName="SageMakerRole")["Role"][
          "Arn"
      ]
  
imports: from __future__ import absolute_import
  import os
  import pathlib
  import tempfile
  import pytest
  import yaml
  from botocore.config import Config
  from sagemaker import PipelineModel, image_uris, Model, Predictor, Session
  from sagemaker.config import load_sagemaker_config
  from sagemaker.model_monitor import DataCaptureConfig
  from sagemaker.s3 import S3Uploader
  from sagemaker.sparkml import SparkMLModel
  from sagemaker.utils import sagemaker_timestamp
  from tests.integ import DATA_DIR
  from tests.integ.kms_utils import get_or_create_kms_key
  from tests.integ.test_inference_pipeline import SCHEMA
  from tests.integ.timeout import timeout_and_delete_endpoint_by_name
label_desc: Use image node_id 1 for calling a global function with example usage: role_arn(sagemaker_session) and returns: iam_client