code: def _execute_remote_function(
      sagemaker_session,
      s3_base_uri,
      s3_kms_key,
      run_in_context,
      hmac_key,
      context,
  ):
      """Execute stored remote function"""
      from sagemaker.remote_function.core.stored_function import (
          StoredFunction,
      )
  
      stored_function = StoredFunction(
          sagemaker_session=sagemaker_session,
          s3_base_uri=s3_base_uri,
          s3_kms_key=s3_kms_key,
          hmac_key=hmac_key,
          context=context,
      )
  
      if run_in_context:
          run_obj = _load_run_object(run_in_context, sagemaker_session)
          with run_obj:
              stored_function.load_and_invoke()
      else:
          stored_function.load_and_invoke()
  
file_path: sagemaker-python-sdk/src/sagemaker/remote_function/invoke_function.py
imports: from __future__ import absolute_import
  import argparse
  import sys
  import json
  import os
  from typing import TYPE_CHECKING
  import boto3
  from sagemaker.remote_function.job import KEY_EXPERIMENT_NAME, KEY_RUN_NAME
  from sagemaker.session import Session
  from sagemaker.s3 import s3_path_join
  from sagemaker.remote_function.errors import handle_error
  from sagemaker.remote_function import logging_config
  from sagemaker.remote_function.core.pipeline_variables import Context
label_desc: Use image node_id 5 for calling a global function with example usage: _execute_remote_function(sagemaker_session, s3_base_uri, s3_kms_key, run_in_context, hmac_key, context) without return types