code: def get_formatted_manifest(
      manifest: List[Dict],
  ) -> Dict[JumpStartVersionedModelId, JumpStartModelHeader]:
      """Returns formatted manifest dictionary from raw manifest.
  
      Keys are JumpStartVersionedModelId objects, values are
      ``JumpStartModelHeader`` objects.
      """
      manifest_dict = {}
      for header in manifest:
          header_obj = JumpStartModelHeader(header)
          manifest_dict[
              JumpStartVersionedModelId(
                  header_obj.model_id, header_obj.version
              )
          ] = header_obj
      return manifest_dict
  
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 4 for calling a global function with example usage: get_formatted_manifest(manifest) and returns: manifest_dict