code: def test_init_when_optionals_not_provided():
      sagemaker_session = Mock(default_bucket_prefix=None)
      sagemaker_session.default_bucket.return_value = (
          DEFAULT_BUCKET_NAME
      )
      sagemaker_session.sagemaker_config = {}
  
      data_capture_config = DataCaptureConfig(
          enable_capture=DEFAULT_ENABLE_CAPTURE,
          sagemaker_session=sagemaker_session,
      )
  
      assert (
          data_capture_config.enable_capture == DEFAULT_ENABLE_CAPTURE
      )
      assert (
          data_capture_config.sampling_percentage
          == DEFAULT_SAMPLING_PERCENTAGE
      )
      assert (
          data_capture_config.destination_s3_uri
          == DEFAULT_DESTINATION_S3_URI
      )
      assert data_capture_config.kms_key_id == DEFAULT_KMS_KEY_ID
      assert (
          data_capture_config.csv_content_types
          == DEFAULT_CSV_CONTENT_TYPES
      )
      assert (
          data_capture_config.json_content_types
          == DEFAULT_JSON_CONTENT_TYPES
      )
  
imports: from __future__ import absolute_import
  from mock import Mock
  from sagemaker.model_monitor import DataCaptureConfig
label_desc: Use image node_id 2 for calling a global function with example usage: test_init_when_optionals_not_provided() without return types