code: def get_jumpstart_launched_regions_message() -> str:
      """Returns formatted string indicating where JumpStart is launched."""
      if len(constants.JUMPSTART_REGION_NAME_SET) == 0:
          return "JumpStart is not available in any region."
      if len(constants.JUMPSTART_REGION_NAME_SET) == 1:
          region = list(constants.JUMPSTART_REGION_NAME_SET)[0]
          return f"JumpStart is available in {region} region."
  
      sorted_regions = sorted(list(constants.JUMPSTART_REGION_NAME_SET))
      if len(constants.JUMPSTART_REGION_NAME_SET) == 2:
          return f"JumpStart is available in {sorted_regions[0]} and {sorted_regions[1]} regions."
  
      formatted_launched_regions_list = []
      for i, region in enumerate(sorted_regions):
          region_prefix = "" if i < len(sorted_regions) - 1 else "and "
          formatted_launched_regions_list.append(region_prefix + region)
      formatted_launched_regions_str = ", ".join(
          formatted_launched_regions_list
      )
      return f"JumpStart is available in {formatted_launched_regions_str} regions."
  
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 1 for calling a global function with example usage: get_jumpstart_launched_regions_message() and returns: str, formatted_launched_regions_str, str, str, str, region, str, str, sorted_regions, str, sorted_regions, str