code: def _load_run_object(
      run_in_context: str, sagemaker_session: Session
  ) -> "Run":
      """Load current run in json string into run object"""
      from sagemaker.experiments.run import Run
  
      run_dict = json.loads(run_in_context)
      return Run(
          experiment_name=run_dict.get(KEY_EXPERIMENT_NAME),
          run_name=run_dict.get(KEY_RUN_NAME),
          sagemaker_session=sagemaker_session,
      )
  
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 3 for calling a global function with example usage: _load_run_object(run_in_context, sagemaker_session) and returns: Run