code: def _generate_sagemaker_sdk_tar(destination_folder):
      """
      Run setup.py sdist to generate the PySDK tar file
      """
      subprocess.run(
          f"python3 setup.py egg_info --egg-base {destination_folder} sdist -d {destination_folder} -k",
          shell=True,
          check=True,
      )
      destination_folder_contents = os.listdir(destination_folder)
      source_archive = [
          file
          for file in destination_folder_contents
          if file.endswith("tar.gz")
      ][0]
  
      return source_archive
  
imports: from __future__ import absolute_import
  import base64
  import os
  import subprocess
  import shutil
  import pytest
  import docker
  import re
  import sys
  from docker.errors import BuildError
  from sagemaker.utils import sagemaker_timestamp, _tmpdir, sts_regional_endpoint
label_desc: Use image node_id 15 for calling a global function with example usage: _generate_sagemaker_sdk_tar(destination_folder) and returns: source_archive