code: def test_statistics_object_creation_from_s3_uri_without_customizations(
      sagemaker_session,
  ):
      with open(
          os.path.join(tests.integ.DATA_DIR, "monitor/statistics.json"),
          "r",
      ) as f:
          file_body = f.read()
  
      file_name = "statistics.json"
      desired_s3_uri = os.path.join(
          "s3://",
          sagemaker_session.default_bucket(),
          "integ-test-test-monitoring-files",
          str(uuid.uuid4()),
          file_name,
      )
  
      s3_uri = S3Uploader.upload_string_as_file_body(
          body=file_body,
          desired_s3_uri=desired_s3_uri,
          sagemaker_session=sagemaker_session,
      )
  
      statistics = Statistics.from_s3_uri(
          statistics_file_s3_uri=s3_uri,
          sagemaker_session=sagemaker_session,
      )
  
      assert statistics.file_s3_uri.startswith("s3://")
      assert statistics.file_s3_uri.endswith("statistics.json")
  
      assert statistics.body_dict["dataset"]["item_count"] == 418
  
imports: from __future__ import absolute_import
  import os
  import uuid
  import pytest
  import tests.integ
  import tests.integ.timeout
  from sagemaker.model_monitor import Statistics, Constraints, ConstraintViolations
  from sagemaker.s3 import S3Uploader
  from tests.integ.kms_utils import get_or_create_kms_key
label_desc: Use image node_id 7 for calling a global function with example usage: test_statistics_object_creation_from_s3_uri_without_customizations(sagemaker_session) without return types