class_docstr: Utility class for serializing payloads associated with JumpStart models.
  
  Many JumpStart models embed byte-streams into payloads corresponding to images, sounds,
  and other content types which require downloading from S3.
docstr: Inserts serialized S3 content into string payload.
  
  If no S3 content is embedded in payload, original string is returned.
docstr_tok: ["Inserts","serialized","S3","content","into","string","payload",".","If","no","S3","content","is","embedded","in","payload",",","original","string","is","returned","."]
code: def embed_s3_references_in_str_payload(
      self,
      payload: str,
  ) -> str:
      """Inserts serialized S3 content into string payload.
  
      If no S3 content is embedded in payload, original string is returned.
      """
      return self._embed_s3_b64_references_in_str_payload(
          payload_body=payload
      )
  
imports: from __future__ import absolute_import
  import base64
  import json
  from typing import Any, Dict, List, Optional, Union
  import re
  import boto3
  from sagemaker.jumpstart.accessors import JumpStartS3PayloadAccessor
  from sagemaker.jumpstart.artifacts.payloads import _retrieve_example_payloads
  from sagemaker.jumpstart.constants import DEFAULT_JUMPSTART_SAGEMAKER_SESSION, JUMPSTART_DEFAULT_REGION_NAME
  from sagemaker.jumpstart.enums import MIMEType
  from sagemaker.jumpstart.types import JumpStartSerializablePayload
  from sagemaker.jumpstart.utils import get_jumpstart_content_bucket
  from sagemaker.session import Session
label_desc: Use image node_id 3 for calling the PayloadSerializer obj's underlying member method code with example usage: obj.embed_s3_references_in_str_payload(payload) and returns: self