code: def emit_logs_based_on_model_specs(
      model_specs: JumpStartModelSpecs,
      region: str,
      s3_client: boto3.client,
  ) -> None:
      """Emits logs based on model specs and region."""
  
      if model_specs.hosting_eula_key:
          constants.JUMPSTART_LOGGER.info(
              "Model '%s' requires accepting end-user license agreement (EULA). "
              "See https://%s.s3.%s.amazonaws.com%s/%s for terms of use.",
              model_specs.model_id,
              get_jumpstart_content_bucket(region=region),
              region,
              ".cn" if region.startswith("cn-") else "",
              model_specs.hosting_eula_key,
          )
  
      full_version: str = model_specs.version
  
      models_manifest_list = (
          accessors.JumpStartModelsAccessor._get_manifest(
              region=region, s3_client=s3_client
          )
      )
      max_version_for_model_id: Optional[str] = None
      for header in models_manifest_list:
          if header.model_id == model_specs.model_id:
              if max_version_for_model_id is None or Version(
                  header.version
              ) > Version(max_version_for_model_id):
                  max_version_for_model_id = header.version
  
      if full_version != max_version_for_model_id:
          constants.JUMPSTART_LOGGER.info(
              get_old_model_version_msg(
                  model_specs.model_id,
                  full_version,
                  max_version_for_model_id,
              )
          )
  
      if model_specs.deprecated:
          deprecated_message = model_specs.deprecated_message or (
              "Using deprecated JumpStart model "
              f"'{model_specs.model_id}' and version '{model_specs.version}'."
          )
  
          constants.JUMPSTART_LOGGER.warning(deprecated_message)
  
      if model_specs.deprecate_warn_message:
          constants.JUMPSTART_LOGGER.warning(
              model_specs.deprecate_warn_message
          )
  
      if model_specs.usage_info_message:
          constants.JUMPSTART_LOGGER.info(
              model_specs.usage_info_message
          )
  
      if (
          model_specs.inference_vulnerable
          or model_specs.training_vulnerable
      ):
          constants.JUMPSTART_LOGGER.warning(
              "Using vulnerable JumpStart model '%s' and version '%s'.",
              model_specs.model_id,
              model_specs.version,
          )
  
imports: from __future__ import absolute_import
  import logging
  import os
  from typing import Any, Dict, List, Optional, Union
  from urllib.parse import urlparse
  import boto3
  from packaging.version import Version
  import sagemaker
  from sagemaker.config.config_schema import MODEL_ENABLE_NETWORK_ISOLATION_PATH, MODEL_EXECUTION_ROLE_ARN_PATH, TRAINING_JOB_ENABLE_NETWORK_ISOLATION_PATH, TRAINING_JOB_INTER_CONTAINER_ENCRYPTION_PATH, TRAINING_JOB_ROLE_ARN_PATH
  from sagemaker.jumpstart import constants, enums
  from sagemaker.jumpstart import accessors
  from sagemaker.s3 import parse_s3_url
  from sagemaker.jumpstart.exceptions import DeprecatedJumpStartModelError, VulnerableJumpStartModelError, get_old_model_version_msg
  from sagemaker.jumpstart.types import JumpStartModelHeader, JumpStartModelSpecs, JumpStartVersionedModelId
  from sagemaker.session import Session
  from sagemaker.config import load_sagemaker_config
  from sagemaker.utils import resolve_value_from_config, TagsDict
  from sagemaker.workflow import is_pipeline_variable
label_desc: Use image node_id 16 for calling a global function with example usage: emit_logs_based_on_model_specs(model_specs, region, s3_client) without return types