code: def sagemaker_session():
      boto_mock = Mock(name="boto_session", region_name=REGION)
      session = Mock(
          "sagemaker_session",
          boto_session=boto_mock,
          boto_region_name=REGION,
          config=None,
          local_mode=False,
          s3_resources=None,
          s3_client=None,
          settings=SessionSettings(),
          create_model=Mock(name="create_model"),
          endpoint_from_production_variants=Mock(
              name="endpoint_from_production_variants"
          ),
          default_bucket_prefix=None,
      )
      session.default_bucket = Mock(
          name="default_bucket", return_value=BUCKET
      )
      # For tests which doesn't verify config file injection, operate with empty config
  
      session.sagemaker_config = {}
      return session
  
imports: from __future__ import absolute_import
  import logging
  import json
  from json import JSONDecodeError
  import pytest
  from mock import Mock, MagicMock
  from mock import patch, mock_open
  from sagemaker.djl_inference import defaults, DJLModel, DJLPredictor, HuggingFaceAccelerateModel, DeepSpeedModel
  from sagemaker.djl_inference.model import DJLServingEngineEntryPointDefaults
  from sagemaker.s3_utils import s3_path_join
  from sagemaker.session_settings import SessionSettings
  from tests.unit import _test_default_bucket_and_prefix_combinations, DEFAULT_S3_BUCKET_NAME, DEFAULT_S3_OBJECT_KEY_PREFIX_NAME
label_desc: Use image node_id 1 for calling a global function with example usage: sagemaker_session() and returns: session