code: def test_main_success(
      _get_sagemaker_session,
      load_and_invoke,
      _exit_process,
      _load_run_object,
  ):
      os.environ["REMOTE_FUNCTION_SECRET_KEY"] = TEST_HMAC_KEY
      invoke_function.main(mock_args())
  
      _get_sagemaker_session.assert_called_with(TEST_REGION)
      load_and_invoke.assert_called()
      _load_run_object.assert_not_called()
      _exit_process.assert_called_with(0)
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/remote_function/test_invoke_function.py
imports: from __future__ import absolute_import
  import os
  import pytest
  from mock import patch, Mock, ANY
  from sagemaker.remote_function import invoke_function
  from sagemaker.remote_function.errors import SerializationError
  from sagemaker.remote_function.core.pipeline_variables import Context
  from sagemaker.utils import sagemaker_timestamp
label_desc: Use image node_id 5 for calling a global function with example usage: test_main_success(_get_sagemaker_session, load_and_invoke, _exit_process, _load_run_object) without return types