code: def test_init_with_optional():
      async_inference_config = AsyncInferenceConfig(
          output_path=S3_OUTPUT_PATH,
          failure_path=S3_FAILURE_PATH,
          max_concurrent_invocations_per_instance=OPTIONAL_MAX_CONCURRENT_INVOCATIONS,
          kms_key_id=OPTIONAL_KMS_KEY_ID,
          notification_config=OPTIONAL_NOTIFICATION_CONFIG,
      )
  
      assert async_inference_config.output_path == S3_OUTPUT_PATH
      assert async_inference_config.kms_key_id == OPTIONAL_KMS_KEY_ID
      assert async_inference_config.failure_path == S3_FAILURE_PATH
      assert (
          async_inference_config.max_concurrent_invocations_per_instance
          == OPTIONAL_MAX_CONCURRENT_INVOCATIONS
      )
      assert (
          async_inference_config.notification_config
          == OPTIONAL_NOTIFICATION_CONFIG
      )
  
imports: from __future__ import absolute_import
  from sagemaker.async_inference import AsyncInferenceConfig
label_desc: Use image node_id 2 for calling a global function with example usage: test_init_with_optional() without return types