class_docstr: Interact with Amazon SageMaker.
  
  Provide thick wrapper around
  :external+boto3:py:class:`boto3.client("sagemaker") <SageMaker.Client>`.
  
  Additional arguments (such as ``aws_conn_id``) may be specified and
  are passed down to the underlying AwsBaseHook.
  
  .. seealso::
      - :class:`airflow.providers.amazon.aws.hooks.base_aws.AwsBaseHook`
class_docstr_tok: ["Interact","with","Amazon","SageMaker",".","Provide","thick","wrapper","around",":","external+boto3",":","py",":","class",":","`","boto3.client","(","``","sagemaker","''",")","<","SageMaker.Client",">","`",".","Additional","arguments","(","such","as","``","aws_conn_id","``",")","may","be","specified","and","are","passed","down","to","the","underlying","AwsBaseHook",".","..","seealso",":",":","-",":","class",":","`","airflow.providers.amazon.aws.hooks.base_aws.AwsBaseHook","`"]
docstr: Check if an S3 URL exists.
  
  :param s3url: S3 url
code: def check_s3_url(self, s3url: str) -> bool:
      """Check if an S3 URL exists.
  
      :param s3url: S3 url
      """
      bucket, key = S3Hook.parse_s3_url(s3url)
      if not self.s3_hook.check_for_bucket(bucket_name=bucket):
          raise AirflowException(
              f"The input S3 Bucket {bucket} does not exist "
          )
      if (
          key
          and not self.s3_hook.check_for_key(
              key=key, bucket_name=bucket
          )
          and not self.s3_hook.check_for_prefix(
              prefix=key, bucket_name=bucket, delimiter="/"
          )
      ):
          # check if s3 key exists in the case user provides a single file
          # or if s3 prefix exists in the case user provides multiple files in
          # a prefix
          raise AirflowException(
              f"The input S3 Key or Prefix {s3url} does not exist in the Bucket {bucket}"
          )
      return True
  
imports: from __future__ import annotations
  import os
  import re
  import tarfile
  import tempfile
  import time
  import warnings
  from collections import Counter, namedtuple
  from datetime import datetime
  from functools import partial
  from typing import Any, Callable, Generator, cast
  from botocore.exceptions import ClientError
  from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
  from airflow.providers.amazon.aws.hooks.base_aws import AwsBaseHook
  from airflow.providers.amazon.aws.hooks.logs import AwsLogsHook
  from airflow.providers.amazon.aws.hooks.s3 import S3Hook
  from airflow.providers.amazon.aws.utils.tags import format_tags
  from airflow.utils import timezone
label_desc: Use image node_id 4 for calling the SageMakerHook obj's underlying member method code with example usage: obj.check_s3_url(s3url) and returns: True