code: def spark_test_container(sagemaker_session):
      ecr_uri = _build_container("3.9", DOCKERFILE_TEMPLATE)
      return ecr_uri
  
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 8 for calling a global function with example usage: spark_test_container(sagemaker_session) and returns: ecr_uri