code: def test_enumerator_attributes():
      assert ModelCard(name=MODEL_CARD_NAME, status="Draft")
      assert ModelCard(
          name=MODEL_CARD_NAME,
          status=schema_constraints.ModelCardStatusEnum.DRAFT,
      )
  
      with pytest.raises(
          ValueError,
          match=re.escape(
              "Expected NewStatus to be one of ['Approved', 'Archived', 'Draft', 'PendingReview']"
          ),
      ):
          ModelCard(name=MODEL_CARD_NAME, status="NewStatus")
  
      with pytest.raises(
          ValueError,
          match=re.escape(
              (
                  "Expected MetricTypeEnum.BOOLEAN to be one of ['ModelCardStatusEnum.APPROVED', "
                  "'ModelCardStatusEnum.ARCHIVED', 'ModelCardStatusEnum.DRAFT', "
                  "'ModelCardStatusEnum.PENDING_REVIEW']"
              )
          ),
      ):
          ModelCard(
              name=MODEL_CARD_NAME,
              status=schema_constraints.MetricTypeEnum.BOOLEAN,
          )
  
imports: from __future__ import absolute_import
  import io
  import os
  import json
  import datetime
  import re
  import logging
  import pytest
  from mock import patch, Mock
  from botocore.exceptions import ClientError
  import botocore.response
  from sagemaker.model_card import schema_constraints
  from sagemaker.model_card import Environment, ModelOverview, IntendedUses, BusinessDetails, ObjectiveFunction, TrainingMetric, HyperParameter, Metric, TrainingDetails, MetricGroup, EvaluationJob, AdditionalInformation, ModelCard, Function, TrainingJobDetails, ModelPackage
  from sagemaker.model_card.model_card import ModelCardExportJob, ModelPackageCreator, SourceAlgorithm, Container, InferenceSpecification
  from sagemaker.model_card.helpers import _MaxSizeArray, _IsList, _OneOf, _IsModelCardObject, _JSONEncoder, _hash_content_str, _DefaultToRequestDict, _SkipEncodingDecoding
  from sagemaker.model_card.evaluation_metric_parsers import EvaluationMetricTypeEnum, EVALUATION_METRIC_PARSERS
label_desc: Use image node_id 17 for calling a global function with example usage: test_enumerator_attributes() without return types