code: def mock_sagemaker_environment():
      """Mock an instance of the AwsEnvironment class."""
      environment = MagicMock()
      client = MagicMock()
      session = MagicMock()
      session.client.return_value = client
      environment.get_session.return_value = session
      environment.get_region.return_value = "us-east-1"
  
file_path: wandb/tests/pytest_tests/system_tests/test_launch/test_launch_sagemaker.py
imports: from unittest.mock import MagicMock
  import pytest
  import wandb
  from wandb.apis.internal import Api
  from wandb.sdk.launch import loader
  from wandb.sdk.launch._project_spec import EntryPoint
  from wandb.sdk.launch.environment.aws_environment import AwsEnvironment
label_desc: Use image node_id 1 for calling a global function with example usage: mock_sagemaker_environment() without return types