code: def _retrieve_supported_accept_types(
      model_id: str,
      model_version: str,
      region: Optional[str],
      tolerate_vulnerable_model: bool = False,
      tolerate_deprecated_model: bool = False,
      sagemaker_session: Session = DEFAULT_JUMPSTART_SAGEMAKER_SESSION,
  ) -> List[str]:
      """Retrieves the supported accept types for the model.
  
      Args:
          model_id (str): JumpStart model ID of the JumpStart model for which to
              retrieve the supported accept types.
          model_version (str): Version of the JumpStart model for which to retrieve the
              supported accept types.
          region (Optional[str]): Region for which to retrieve accept type options.
          tolerate_vulnerable_model (bool): True if vulnerable versions of model
              specifications should be tolerated (exception not raised). If False, raises an
              exception if the script used by this version of the model has dependencies with known
              security vulnerabilities. (Default: False).
          tolerate_deprecated_model (bool): True if deprecated versions of model
              specifications should be tolerated (exception not raised). If False, raises
              an exception if the version of the model is deprecated. (Default: False).
          sagemaker_session (sagemaker.session.Session): A SageMaker Session
              object, used for SageMaker interactions. If not
              specified, one is created using the default AWS configuration
              chain. (Default: sagemaker.jumpstart.constants.DEFAULT_JUMPSTART_SAGEMAKER_SESSION).
      Returns:
          list: the supported accept types to use for the model.
      """
  
      if region is None:
          region = JUMPSTART_DEFAULT_REGION_NAME
  
      model_specs = verify_model_region_and_return_specs(
          model_id=model_id,
          version=model_version,
          scope=JumpStartScriptScope.INFERENCE,
          region=region,
          tolerate_vulnerable_model=tolerate_vulnerable_model,
          tolerate_deprecated_model=tolerate_deprecated_model,
          sagemaker_session=sagemaker_session,
      )
  
      supported_accept_types = (
          model_specs.predictor_specs.supported_accept_types
      )
  
      return supported_accept_types
  
file_path: sagemaker-python-sdk/src/sagemaker/jumpstart/artifacts/predictors.py
imports: from __future__ import absolute_import
  from typing import List, Optional, Set, Type
  from sagemaker.base_deserializers import BaseDeserializer
  from sagemaker.base_serializers import BaseSerializer
  from sagemaker.jumpstart.constants import ACCEPT_TYPE_TO_DESERIALIZER_TYPE_MAP, CONTENT_TYPE_TO_SERIALIZER_TYPE_MAP, DEFAULT_JUMPSTART_SAGEMAKER_SESSION, DESERIALIZER_TYPE_TO_CLASS_MAP, JUMPSTART_DEFAULT_REGION_NAME, SERIALIZER_TYPE_TO_CLASS_MAP
  from sagemaker.jumpstart.enums import JumpStartScriptScope, MIMEType
  from sagemaker.jumpstart.utils import verify_model_region_and_return_specs
  from sagemaker.session import Session
label_desc: Use image node_id 9 for calling a global function with example usage: _retrieve_supported_accept_types(model_id, model_version, region, tolerate_vulnerable_model, tolerate_deprecated_model, sagemaker_session) and returns: supported_accept_types