code: def test_create_model_card_duplicate(session):
      session.sagemaker_client.create_model_card.side_effect = [
          CREATE_MODEL_CARD_RETURN_EXAMPLE,
          GENERAL_CLIENT_ERROR,
      ]
  
      session.sagemaker_client.describe_model_card.side_effect = [
          LOAD_MODEL_CARD_EXMPLE,
      ]
  
      card1 = ModelCard(name=MODEL_CARD_NAME, sagemaker_session=session)
      card1.create()
      assert card1.arn == MODEL_CARD_ARN
  
      with pytest.raises(ClientError):
          card2 = ModelCard(
              name=MODEL_CARD_NAME, sagemaker_session=session
          )
          card2.create()
  
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 11 for calling a global function with example usage: test_create_model_card_duplicate(session) without return types