code: def _is_repository_exists(ecr_client, repo_name):
      try:
          ecr_client.describe_repositories(repositoryNames=[repo_name])
          return True
      except ecr_client.exceptions.RepositoryNotFoundException:
          return False
  
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 12 for calling a global function with example usage: _is_repository_exists(ecr_client, repo_name) and returns: True, False