code: def test_carry_over_additional_content_from_model_package_group(
      session, model_package_example
  ):
      session.sagemaker_client.describe_model_card = Mock(
          return_value=DESCRIBE_MODEL_CARD_WITH_ADDITONAL_CONTENT
      )
  
      session.sagemaker_client.search.side_effect = [
          SEARCH_TRAINING_JOB_EXAMPLE,
          SEARCH_LATEST_MODEL_CARD_EXAMPLE,
      ]
  
      mc = ModelCard(
          name=MODEL_CARD_NAME,
          status=MODEL_CARD_STATUS,
          sagemaker_session=session,
          model_package_details=model_package_example,
          business_details={
              "business_problem": ORIGINAL_MOCK_STRING,
              "business_stakeholders": ORIGINAL_MOCK_STRING,
          },
      )
  
      assert mc.intended_uses.purpose_of_model == PURPOSE_OF_MODEL
      assert mc.intended_uses.risk_rating == RISK_RATING
      assert (
          mc.intended_uses.factors_affecting_model_efficiency
          == FACTORS_AFFECTING_MODEL_EFFICIENCY
      )
  
      assert (
          mc.business_details.business_problem == ORIGINAL_MOCK_STRING
      )
      assert (
          mc.business_details.business_stakeholders
          == ORIGINAL_MOCK_STRING
      )
  
      assert (
          mc.additional_information.ethical_considerations
          == ETHICAL_CONSIDERATIONS
      )
      assert (
          mc.additional_information.caveats_and_recommendations
          == CAVEATS_AND_RECOMMENDATIONS
      )
      assert mc.additional_information.custom_details == CUSTOM_DETAILS
  
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 14 for calling a global function with example usage: test_carry_over_additional_content_from_model_package_group(session, model_package_example) without return types