code: def add_single_jumpstart_tag(
      tag_value: str,
      tag_key: enums.JumpStartTag,
      curr_tags: Optional[List[Dict[str, str]]],
      is_uri=False,
  ) -> Optional[List]:
      """Adds ``tag_key`` to ``curr_tags`` if ``uri`` corresponds to a JumpStart model.
  
      Args:
          uri (str): URI which may correspond to a JumpStart model.
          tag_key (enums.JumpStartTag): Custom tag to apply to current tags if the URI
              corresponds to a JumpStart model.
          curr_tags (Optional[List]): Current tags associated with ``Estimator`` or ``Model``.
          is_uri (boolean): Set to True to indicate a s3 uri is to be tagged. Set to False to indicate
              tags for JumpStart model id / version are being added. (Default: False).
      """
      if not is_uri or is_jumpstart_model_uri(tag_value):
          if curr_tags is None:
              curr_tags = []
          if not tag_key_in_array(tag_key, curr_tags):
              skip_adding_tag = (
                  (
                      tag_key_in_array(
                          enums.JumpStartTag.MODEL_ID, curr_tags
                      )
                      or tag_key_in_array(
                          enums.JumpStartTag.MODEL_VERSION, curr_tags
                      )
                  )
                  if is_uri
                  else False
              )
              if not skip_adding_tag:
                  curr_tags.append(
                      {
                          "Key": tag_key,
                          "Value": tag_value,
                      }
                  )
      return curr_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 11 for calling a global function with example usage: add_single_jumpstart_tag(tag_value, tag_key, curr_tags, is_uri) and returns: curr_tags