code: def test_create_model_card_with_multiple_models(
      session, model_package_example, model_overview_example
  ):
      card = ModelCard(
          name=MODEL_CARD_NAME,
          status=MODEL_CARD_STATUS,
          model_overview=model_overview_example,
          sagemaker_session=session,
      )
  
      with pytest.raises(
          ValueError,
          match=re.escape(
              f"The model card has already been associated with a model with model Id {MODEL_ID}"  # noqa E501  # pylint: disable=c0301
          ),
      ):
          card.model_package_details = model_package_example
  
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 10 for calling a global function with example usage: test_create_model_card_with_multiple_models(session, model_package_example, model_overview_example) without return types