code: def test_create_collection_root_success(sagemaker_session):
      collection = Collection(sagemaker_session)
      collection_name = unique_name_from_base("test-collection")
      collection.create(collection_name)
      collection_filter = [
          {
              "Name": "resource-type",
              "Values": [
                  "AWS::ResourceGroups::Group",
                  "AWS::SageMaker::ModelPackageGroup",
              ],
          },
      ]
      collection_details = sagemaker_session.list_group_resources(
          group=collection_name, filters=collection_filter
      )
      assert (
          collection_details["ResponseMetadata"]["HTTPStatusCode"]
          == 200
      )
      delete_response = collection.delete([collection_name])
      assert len(delete_response["deleted_collections"]) == 1
      assert len(delete_response["delete_collection_failures"]) == 0
  
imports: from __future__ import absolute_import
  from sagemaker.utils import unique_name_from_base
  from sagemaker.collection import Collection
label_desc: Use image node_id 1 for calling a global function with example usage: test_create_collection_root_success(sagemaker_session) without return types