code: def test_sagemaker_session_does_not_create_bucket_on_init(
      sagemaker_client_config, sagemaker_runtime_config, boto_session
  ):
      sagemaker_client_config.setdefault(
          "config", Config(retries=dict(max_attempts=10))
      )
      sagemaker_client = (
          boto_session.client("sagemaker", **sagemaker_client_config)
          if sagemaker_client_config
          else None
      )
      runtime_client = (
          boto_session.client(
              "sagemaker-runtime", **sagemaker_runtime_config
          )
          if sagemaker_runtime_config
          else None
      )
  
      Session(
          boto_session=boto_session,
          sagemaker_client=sagemaker_client,
          sagemaker_runtime_client=runtime_client,
          default_bucket=CUSTOM_BUCKET_NAME,
      )
  
      s3 = boto3.resource("s3", region_name=boto_session.region_name)
      assert s3.Bucket(CUSTOM_BUCKET_NAME).creation_date is None
  
imports: from __future__ import absolute_import
  import boto3
  from botocore.config import Config
  from sagemaker import Session
label_desc: Use image node_id 1 for calling a global function with example usage: test_sagemaker_session_does_not_create_bucket_on_init(sagemaker_client_config, sagemaker_runtime_config, boto_session) without return types