code: def add_jumpstart_model_id_version_tags(
      tags: Optional[List[TagsDict]],
      model_id: str,
      model_version: str,
  ) -> List[TagsDict]:
      """Add custom model ID and version tags to JumpStart related resources."""
      if model_id is None or model_version is None:
          return tags
      tags = add_single_jumpstart_tag(
          model_id,
          enums.JumpStartTag.MODEL_ID,
          tags,
          is_uri=False,
      )
      tags = add_single_jumpstart_tag(
          model_version,
          enums.JumpStartTag.MODEL_VERSION,
          tags,
          is_uri=False,
      )
      return tags
  
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 13 for calling a global function with example usage: add_jumpstart_model_id_version_tags(tags, model_id, model_version) and returns: tags, tags